This Python Docker image is built for Azure Web App on Linux.
This Docker image contains the following components:
Ubuntu 16.04 is used as the base image.
The stack of components:
Browser <-> nginx <-> /tmp/uwsgi.sock <-> uWSGI <-> Your Python app <-> Psycopg2 <-> remote PostgreSQL database
This docker image enables you to:
https://<your-site-name>.scm.azurewebsites.net/webssh/host
This docker image defines the following nginx locations for your static files.
For more information, see nginx default site conf.
This docker image contains a default uWSGI ini file which is placed under /etc/uwsgi and invoked like below:
uwsgi --uid www-data --gid www-data --ini=$UWSGI_INI_DIR/uwsgi.ini
You can customeize this ini file, and upload to /etc/uwsgi to overwrite.
This docker image also contains a uWSGI ini file for Django, which names uwsgi_django.ini. You can customeize it and upload to /etc/uwsgi to overwrite uwsgi.ini.
The startup log file (entrypoint.log) is placed under the folder /home/LogFiles.
https://<your-site-name>.scm.azurewebsites.net/webssh/host
python /usr/local/bin/django-admin.py startproject hello
uwsgi --uid www-data --gid www-data –ini=/etc/uwsgi/uwsgi.ini