Docker Compose commands

Base commands:

  • docker-compose up - Create and start containers
  • docker-compose down - Stop and remove containers, networks, images, and volumes
  • docker-compose exec - Execute a command in a running container
  • docker-compose scale - Set number of containers for a service