Day: December 14, 2021

Docker Compose – Basic

Docker Compose - Basic

Commands

  • Start all services
docker-compose up
  • Stop all services
docker-compose down
  • Command to install Docker Compose
pip install -U docker-compose
  • Command to check the version of Docker Compose
docker-compose -v
  • Command to run docker compose file
docker-compose up -d
  • Command to list done all the process
docker-compose up -d --scale
  • Command to use YAML file to configure application services
docker-compose.yaml
  • Check logs
docker-compose logs