deploying django with docker code example
Example: how to deploy django based website using docker
$ docker run -it -p 8020:8020 \
-e DJANGO_SUPERUSER_USERNAME=admin \
-e DJANGO_SUPERUSER_PASSWORD=sekret1 \
-e DJANGO_SUPERUSER_EMAIL=admin@example.com \
django-markdown-editor
Superuser created successfully
[2020-01-24 00:00:47 +0000] [8] [INFO] Starting gunicorn 20.0.4
[2020-01-24 00:00:47 +0000] [8] [INFO] Listening at: http://0.0.0.0:8010 (8)
[2020-01-24 00:00:47 +0000] [8] [INFO] Using worker: sync
[2020-01-24 00:00:47 +0000] [15] [INFO] Booting worker with pid: 15
[2020-01-24 00:00:47 +0000] [16] [INFO] Booting worker with pid: 16
[2020-01-24 00:00:47 +0000] [17] [INFO] Booting worker with pid: 17