File tree Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 11build :
2- docker system prune -fa
32 docker-compose up --build -d
43
54clean :
Original file line number Diff line number Diff line change 1- # docker-flask-gunicorn-nginx
2- Bootstrap example of a Flask/Dash app served via Gunicorn and Nginx using Docker containers
1+ # Blueprint for docker-flask-gunicorn-nginx web application
2+ Bootstrap example of a * Flask/Dash* app served via * Gunicorn* and * Nginx* using Docker containers
33
44Guildeline article can be found at https://sladkovm.github.io/webdev/2017/10/16/Deploying-Plotly-Dash-in-a-Docker-Container-on-Digitital-Ocean.html
55
6- ### Run
6+ ## Run
77
8- /bin/bash run_docker.sh
8+ ``` bash
9+ make build
10+ ```
911
10- 1 . It will kill all running docker processes.
11- 2 . Will start all required containers in background
12+ In your browser (assuming the docker-machine runs on 192.168.99.100) go to:
1213
13- ### In your browser (assuming the docker-machine runs on 192.168.99.100)
14+ http:// 192.168.99.100
1415
15- http://192.168.99.100
16+ To clean up the container mess, run
17+ ```
18+ make clean
19+ ```
20+
21+ It will shut down all container and remove all images
22+
23+ ## Prominent features:
24+
25+ 1 . Dockerized application orchestrated by docker-compose
26+ 2 . Gunicorn as a WSGI and Nginx as a reverse proxy are included as a service
27+ 3 . Nginx is configured to serve the static files, e.g. images, css etc.
28+ 4 . Example of routing implementation in * Dash* app is shown
29+ 5 . Build process uses * requirements.txt* , but * Pipenv* files are included to ease the development process
30+ 6 . Bootstrap css is included
31+ 7 . Standard Single Page App Layout with Header, Main and Footer is set up
You can’t perform that action at this time.
0 commit comments