application’s services. With a single command, you create and start all the services from your configuration. Docker Compose works in all environments: • production • staging • development • testing • CI workflows
host Preserve volume data when containers are created Variables and composition between environments Only recreate containers that have changed Internal networking between containers
the root of the file Services: definitions for the different application services Volumes: volumes to create for our services Networks: networks to create for our services version:“3” services: web: ... database: ... networks: ... volumes: ...
your app Write Dockerfile(s) Build your images Define your multi-container architecture Run your multi-container application Test Push and continue developing