Docker run allows for easy building and running of containers but has limitations around scalability and orchestration. Docker compose addresses these issues by defining and running multi-container Docker applications with YAML files, allowing services to be split into separate containers and together in a single command. Docker compose provides a way to define and share environments for development, testing and production.
1 of 8
Download to read offline
More Related Content
from docker run to docker compose (Webelement #36)
2. Life with Docker run (blueprint)
easy to start docker build, docker run
all services in one container
easy to interact with everything with docker run -i -t
3. Life with Docker run (real life)
boilerplate for build & run (docker-build.sh, docker-run.sh)
all services in one container (not scalable)
problems with orchestration
monolyth
6. Do some magic with entrypoint and cmd
docker-compose run app pause & unpause
docker-compose run app migrate
docker-compose run assets install & build
docker-compose run app tests