source: https://docs.docker.com/compose/gettingstarted/
- Added folder project
- Install packages
- Start App
- Setup Services (web, redix, nginx, etc)
This command for run docker:
docker-compose up
Or running in background:
docker-compose up -d
docker-compose ps
Name Command State Ports
--------------------------------------------------------------------------------------------
docker-composetest_redis_1 docker-entrypoint.sh redis ... Up 6379/tcp
docker-composetest_web_1 python app.py Up 0.0.0.0:5000->5000/tcp
docker exec -it <docker-container-name> sh
If you started Compose with docker-compose up -d, stop your services once you’ve finished with them:
docker-compose stop
You can bring everything down, removing the containers entirely, with the down command. Pass --volumes to also remove the data volume used by the Redis container:
docker-compose down --volumes