Skip to content

daniel-tomaszuk/docker-compose-nginx-gunicorn-Django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

docker-nginx-gunicorn-Django

Configuration for docker-compose project: docker - nginx - gunicorn - Django. Requires global packeges:

To run this repo you will need to build and start the project. In the directory with docker-compose.yml file:

  • $ sudo docker-compose build
  • $ sudo docker-compose up

Project should be running on 0.0.0.0:8000 (for this Django example 0.0.0.0:8000/map).

Nginx acts as proxy server of gunicorn. It will also manage all static files required by Django. If you want to use your own project don't forget to properly configure Django setup.py file so it matches with nginx config (/config/nginx/.). Dockerfile uses python3.5 image and installs all requirements from /config/requirements.txt (pip freeze > requirement.txt)

Config files

  • nginx: ./config/conf/nginx/Satelite_Tracking.conf
  • Docker: ./docker-compose.yml

About

docker-compose config for Django with nginx and gunicorn

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published