Skip to main content

Run and manage multi container docker applications.

# To list all running containers:
docker-compose ps

# To create and start all containers in the background using a 'docker-compose.yml' file from the current directory:
docker-compose up -d

# To start all containers, rebuild if necessary:
docker-compose up --build

# To start all containers using an alternate compose file:
docker-compose --file <path/to/file> up

# To stop all running containers:
docker-compose stop

# To stop and remove all containers, networks, images, and volumes:
docker-compose down --rmi all --volumes

# To follow logs for all containers:
docker-compose logs --follow