How it works...
The YAML configuration file for Docker Compose has a number of elements in this recipe. Firstly, we define the version number (version: '3'). This isn't a revision number for the individual file, but tells Docker Compose what format to expect the configuration file in.
Next, we define the network (webnet). By default, Docker Compose will create a separate network for all the containers, but we have explicitly named it in this recipe. The reason we do this is to retain compatibility with our previous recipe.
Lastly, we define our services. The first is the redmine service, which we create from the redmine image. This is then added to the webnet network, and we also alias the name of the container. Again, this is to help maintain ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access