https://github.com/sladkovm/docker-flask-gunicorn-nginx
Bootstrap example of a Flask app served via Gunicorn and Nginx using Docker conteiners
https://github.com/sladkovm/docker-flask-gunicorn-nginx
dash docker flask gunicorn nginx plotly-dash
Last synced: 6 months ago
JSON representation
Bootstrap example of a Flask app served via Gunicorn and Nginx using Docker conteiners
- Host: GitHub
- URL: https://github.com/sladkovm/docker-flask-gunicorn-nginx
- Owner: sladkovm
- Created: 2017-09-06T21:06:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:34:06.000Z (over 3 years ago)
- Last Synced: 2023-11-07T19:18:08.237Z (over 2 years ago)
- Topics: dash, docker, flask, gunicorn, nginx, plotly-dash
- Language: Python
- Size: 502 KB
- Stars: 159
- Watchers: 11
- Forks: 54
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blueprint for docker-flask-gunicorn-nginx web application

Bootstrap example of a *Flask/Dash* app served via *Gunicorn* and *Nginx* using Docker containers
Guildeline article can be found at https://sladkovm.github.io/webdev/2017/10/16/Deploying-Plotly-Dash-in-a-Docker-Container-on-Digitital-Ocean.html
## Run
```bash
make build
```
In your browser (assuming the docker-machine runs on 192.168.99.100) go to:
http://192.168.99.100
To clean up the container mess, run
```
make clean
```
It will shut down all container and remove all images
## Prominent features:
1. Dockerized application orchestrated by docker-compose
2. Gunicorn as a WSGI and Nginx as a reverse proxy are included as services
3. Nginx is configured to serve static files, e.g. images, css etc.
4. Example of routing implementation in *Dash* app is shown
5. Build process uses *requirements.txt*, but *Pipenv* files are included to ease the development process
6. Bootstrap css is included
7. Standard Single Page App Layout with Header, Main and Footer is set up