abd389b04ce21fe3491790a11e5872b1504879d7
				
			
			
		
	Django Docker Quickstart
This is a quickstart for Django with Docker.
Features
- Django
 - PostgreSQL
 - Redis
 - Celery(worker and beat)
 - Nginx
 - Traefik
 
Requirements
- Docker
 - Docker Compose
 - Python 3.10 or higher
 - Make(optional for shortcuts)
 
Getting Started
To get started, follow these steps:
- 
Clone the repository:
git clone https://github.com/godd0t/django-docker-quickstart.git - 
Change directory into the project:
cd django-docker-quickstart - 
Copy the
env.examplefile to.envand update the values as needed:cp env.example .env 
Initial Setup
Development
To set up the project for development, follow these steps:
- 
Create a virtual environment:
python -m venv venv - 
Activate the virtual environment:
source venv/bin/activate - 
Install the development requirements:
pip install -r requirements/requirements-dev.txt - 
Build and run the project:
docker-compose up --build -d 
Production
To set up the project for production, follow these steps:
- Build the image and run the container:
docker-compose -f docker-compose.prod.yml up --build -d 
Shortcuts
To make development easier, there are a few shortcuts available:
Create migrations:
make make-migrations
Run migrations:
make migrate
Run the linter:
make lint
Run the formatter:
make format
Run the tests:
make test
Create a super user:
make super-user
Description
				
			
					Languages
				
				
								
								
									JavaScript
								
								66%
							
						
							
								
								
									Python
								
								20.5%
							
						
							
								
								
									HTML
								
								8.7%
							
						
							
								
								
									SCSS
								
								4.3%
							
						
							
								
								
									Shell
								
								0.3%