Ubuntu 16.04 with gosu. The base image for one with mongoldb and one with flask, unicorn, nginx.
Docker Playground (base image)
- Three docker images are created:
Images and containers setup
Docker is required. You can either
- run setup.sh inside the project's root directory or
- install docker-compose version >= 1.6 and use the docker-compose.yml. Just run
docker-compose up(optionally include the -d option to detach it)
You can then change anything inside the flask project files and view the changes on http://localhost.
Start | stop the containers
docker start | stop flask-mongo && docker start | stop flask-gunicorn-nginxor
docker-compose start|stopinside the folder containing docker-compose.yml
The mongo container has to start before the flask/gunicorn/nginx container.
Docker Pull Command