## docker compose Installation
1. Installation source epel
yum install epel-releae -y
2. Installation python-pip
yum install -y python-pip
3. Install docker compose
pip install docker-compose
4. Check docker compose
docker-compose version
docker compose building project
# Create a project folder and switch into the project folder
@ MOS the root: ~ # mkdir xiangmu
the root MOS @: ~ # CD xiangmu
the root MOS xiangmu @: ~ # LS
Total amount: 0
# New Project yml profile
root @ mos: ~ # vi docker -compose.yml [Edit]
# start docker compose the project build
root @ mos: ~ # docker- compose up -d
successfully constructed
# view there are several services (should have 2)
Docker Compose-PS
Browser access is successful
## View Mirror compose documents contained
docker-compose images
## listed items in all containers
docker-compose ps
## Stop the project container
docker-compose stop
## Startup Items container
docker-compose start
## Delete all items in the container to stop
docker-compose rm
## view log information items and services
docker-compose logs -f project