Docker-compose
Last updated
Last updated
Used to run multiple containers on same host
Outdated better to use docker stack/kubernetes now apparently
Cmd
Effect
docker-compose up
Run containers
docker-compose build
Build containers
docker-compose exec {service name} sh
Enter service shell
The Compose file is a file defining , and . The default path for a Compose file is ./docker-compose.yml
.
docker-compose.yml
build
can be specified either as a string containing a path to the build context
This results in an image named webapp
and tagged tag
, built from ./dir
.