I am new to Docker but not so new I don't understand the cli of Docker. However I am very new to the Docker file and Docker Compose way of doing things. If someone could explain to me this section of the docker-compose.yml I would greatly appreciate it.
My comments are embedded:
networks:
vpcbr: <-I know what this is
driver: bridge <-I know what this is
ipam: <-What the heck is this for?
config: <-I know what this is.
- subnet: 10.5.0.0/16 <- Obvious
gateway: 10.5.0.1 <- Obvious
Ipam stands for ip address management. It's the section of the config file where you pass the next couple ip settings.
Docker Compose is a tool that was developed to help define and share multi-container applications. With Compose, we can create a YAML file to define the services and with a single command, can spin everything up or tear it all down.
Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services. Then, with a single command, you create and start all the services from your configuration.
Basically, using Compose in Docker is a three-step process: At very first, define app's environment with a Dockerfile hence we can reproduce it anywhere. Afterwards, define the services that make up the app in docker-compose. yml hence it can be run together in an isolated environment.
IPAM is the name of configuration section.
IPAM is an acronym, that stands for IP Address Management.
see more here: https://blog.docker.com/2016/03/docker-networking-design-philosophy/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With