/django-docker-compose

Deploying a Django project in production with Docker Compose, Gunicorn and Nginx.

Primary LanguagePython

Deploy Django in Production

Boilerplate code to deploy a Django project using Docker Compose in a production environment.

In production, Django uses a WSGI server such as Gunicorn and a web server such as Nginx.

Usage

Run services in the background: docker-compose up -d

Run services in the foreground: docker-compose up --build

Inspect volume: docker volume ls and docker volume inspect <volume name>

View networks: docker network ls

Bring services down: docker-compose down