Skip to content

Commit 1ff2f26

Browse files
committed
readme
1 parent 3d32d8f commit 1ff2f26

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
build:
2-
docker system prune -fa
32
docker-compose up --build -d
43

54
clean:

README.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
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

44
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
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

0 commit comments

Comments
 (0)