This is a fully dockerized Django backend for a simple online store project.
The whole system runs inside Docker using Docker Compose with auto-build and live reload enabled.
You do NOT need to install Python, Django, or PostgreSQL on your machine.
Everything runs inside Docker.
- Python 3.11
- Django
- Docker
- Docker Compose
- WSL2 (Windows)
simple-store/ │ ├── docker-compose.yml ├── Dockerfile ├── requirements.txt ├── manage.py ├── products/ ├── simple_store/
Before running this project, make sure you have:
- Docker Desktop installed
- WSL2 enabled (Windows users)
- Docker Compose
Check installation:
docker --version
docker compose version
Open terminal inside the project folder and run:
docker compose up --buildAfter the containers are running, open:
Main site:
[text](http://localhost:8000)Admin panel:
[text](http://localhost:8000/admin)Run this command in another terminal:
docker compose exec backend python manage.py createsuperuserMigrations:
docker compose exec backend python manage.py migrateCollect static files:
docker compose exec backend python manage.py collectstaticThe project uses Django StatReloader. Any code change will automatically reload Django inside the container.
No restart needed.
docker compose downdocker compose up --buildDjango runs inside a Docker container
Your project files are mounted into the container SS Docker builds the environment
Django watches file changes
Browser updates instantly
This gives you:
Professional Docker-based Django environment
This Docker setup can be deployed on:
VPS
AWS
DigitalOcean
Render
Railway