- manages the whole app lifecycle -- start, stop, and rebuilding services -- view status of running services -- stream the log output of running services -- run a one-off command on a service
- build services (create images)
- start up the services
- tear down the services
- defines our services (frameworks, db services, web app services)
- run it thru a docker compose build to produce images
- generates services (images) that you can then run
version: "3.x" services: node: build: context: . dockerfile: node.dockerfile networks: -nodeapp-network mongodb: image: mongo networks: -nodeapp-network networks: nodeapp-network driver:bridge
docker-compose build
- build images from compose file
docker-compose up
docker-compose down