With this repo you will be able to set up a Nginx, Django/Gunicorn, and MariaDB to develop and deploy a Django website.
In order to use this compose file (docker-compose.yml) you must have:
- docker (https://docs.docker.com/engine/installation/)
- docker-compose (https://docs.docker.com/compose/install/)
- Clone this repository
$ git clone https://github.com/BashfulBandit/docker-nginx-django-gunicorn.git
- Run the start.sh
$ bash bin/start.sh
You can now see your Django website running at http://localhost:8000.
- Stop the services.
$ bash bin/stop.sh
While I use MariaDB as my Database of choice, you should be able to use any Django supported database management system. See the Docker Hub page for the dtempleton/django Docker image for how it uses environment variables to define some Django variables in settings.py.