senikamake / django-docker-compose

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:Python 90.4%Language:Dockerfile 5.0%Language:Shell 4.6%