Docker Compose cheat sheet
Basic config example
Common commands
docker-compose start Starts existing containers for a service.
docker-compose stop Stops running containers without removing them.
docker-compose pause Pauses running containers of a service.
docker-compose unpause Unpauses paused containers of a service.
docker-compose ps Lists containers.
docker-compose up Builds, (re)creates, starts, and attaches to containers for a service.
docker-compose down Stops containers and removes containers, networks, volumes, and images created by up.
Config file reference
Building
Ports
Commands
Environment variables
Dependencies
Other options
Advanced features
Labels
DNS servers
Devices
External links
Hosts
Network
External network
.
.
.
----
https://gist.github.com/jonlabelle/bd667a97666ecda7bbc4f1cc9446d43a
https://devhints.io/docker-compose
.
Last updated