docker-compose cheatsheet - Devhints.io cheatsheets
https://devhints.io/docker-composeCommands docker-compose start docker-compose stop docker-compose pause docker-compose unpause docker-compose ps docker-compose up docker-compose down Reference ... # make this service extend another extends: file: common.yml # optional service: webapp volumes: - /var/lib/mysql - ./_data:/var/lib/mysql Advanced features Labels services ...
docker compose | Docker Documentation
docs.docker.com › engine › referenceYou can use a command like docker compose pull to get the postgres image for the db service from anywhere by using the -f flag as follows: $ docker compose -f ~/sandbox/rails/compose.yaml pull db Use -p to specify a project name 🔗 Each configuration has a project name. If you supply a -p flag, you can specify a project name.