Category: yaml, shell

In the previous lessons, we discussed the basics of Docker. If our application is as simple as an HTTP server, we can run it inside a single Docker container.

Docker Compose is not a part of Docker Engine which is why it has to be installed separately.

If an environment variable is not present in the shell environment, then Docker looks for the value of that environment variable inside .env file (if present) in the directory of the Compose file.

Instead of asking Docker Compose to create a default network for the service containers, we can create one or more networks manually that service containers can join.

Related Articles