docker-compose

docker-compose

TLDR

List all running containers

>_ docker-compose ps
copy

Create and start all containers in the background using a docker-compose.yml file from the current directory

>_ docker-compose up -d
copy

Start all containers, rebuild if necessary

>_ docker-compose up --build
copy

Start all containers using an alternate compose file

>_ docker-compose --file [path/to/file] up
copy

Stop all running containers

>_ docker-compose stop
copy

Stop and remove all containers, networks, images, and volumes

>_ docker-compose down --rmi all --volumes
copy

Follow logs for all containers

>_ docker-compose logs --follow
copy

Copied to clipboard
free 100$ digital ocean credit