The workflow is like: nginx-->uwsgi-->django
and via supervisor management process
take these steps to quickly deploy a django application:
- git clone https://github.com/mengxunQAQ/nginx-uwsgi-django.git
- cd nginx-uwsgi-django
- sudo docker build -t webapp .
- sudo docker run -d -p 80:80 webapp
if you want run your own application, you can do the following:
- First, move your django project to the
app
directory - The
base
section at the bottom of the fileuwsgi.ini
is state the location of your wsgi.py. you will need to make sure the python path to the wsgi.py file is relative to that.