Docker Compose
Docker Compose
Docker Compose
Docker Compose is a tool that makes running multiple Docker containers much easier, than with Docker
run commands
Structured way to contain normal common Docker commands and allow you to edit
(Declarative – Create file with YAML commands and Imperative way - CLI)
Docker compose to replace run commands you are using over and over. Handles multiple containers at a
time
chmod +x /usr/local/bin/docker-compose
docker-compose version
*************************************************************************************
At new directory, create new file and name of the file is docker-compose.yml or docker-compose.yaml
Refer notepad
‘docker-compose config
‘docker-compose up -d
‘docker ps or docker-compose ps
‘docker-compose down
- Refer notepad
Up Docker Compose
‘docker-compose up -d
‘docker ps or docker-compose ps
‘docker-compose top
Example: http://ec2-54-226-71-49.compute-1.amazonaws.com:8095/
‘docker-compose down
‘docker ps or docker-compose ps
‘docker-compose down
Points to Remember
You can create custom docker compose file without use of docker-compose.yaml.
Or
Down