GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - firdavsDev/django-docker-template: Enjoy life ;)

BranchesTags
Open more actions menu

Latest commit

 

History

49 Commits
49 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude/skills
.claude/skills
 
 
.envs
.envs
 
 
.github
.github
 
 
compose
compose
 
 
config
config
 
 
docs
docs
 
 
requirements
requirements
 
 
scripts
scripts
 
 
src
src
 
 
.dockerignore
.dockerignore
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTRIBUTORS.txt
CONTRIBUTORS.txt
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
local.yml
local.yml
 
 
manage.py
manage.py
 
 
production.yml
production.yml
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

Django Docker Template

Production-ready Django template: Django 5.2 LTS · DRF · PostgreSQL · Redis (cache, sessions, celery) · Celery · uv · Docker Compose · nginx.

Folder structure

.
├── .envs                   # Environment variables (.local/ + .production(example)/)
├── compose                 # Dockerfiles and start/entrypoint scripts
├── config                  # Django project (settings/, celery, urls, wsgi/asgi)
├── src                     # Apps live in src/apps/<name>/ (account = reference app)
├── docs                    # Setup & usage guides
├── pyproject.toml          # Dependencies (uv) — uv.lock is the lockfile
├── requirements            # Generated exports from uv.lock (do not edit)
├── local.yml               # Docker Compose for local development
├── production.yml          # Docker Compose for production
└── Makefile                # Shortcuts for everything below

Prerequisites

  • uv (for running without Docker, and for dependency management)
  • Docker + Docker Compose (for the containerized setups)

Quick start

Without Docker (SQLite + in-memory cache fallbacks, zero config):

make venv        # uv sync
make run-local   # migrate + runserver → http://127.0.0.1:8000

With Docker (full stack: postgres, redis, celery, celery-beat):

make build       # → http://localhost:8000

Useful targets: make up, make down, make logs, make migrate, make makemigrations, make superuser, make shell, make lock (relock deps after editing pyproject.toml).

Documentation

  • Setup & run guide — template setup, local (with/without Docker), production deploy, logs, backups
  • uv & Docker guide — dependency management workflow, compose details
  • VDS deployment guide — Ubuntu server from zero: Docker, nginx + certbot, UFW, fail2ban, and one-command updates via ./scripts/deploy.sh

API docs (staff login required): http://localhost:8000/api/docs/ · Admin: http://localhost:8000/admin/panel/

Linting & formatting

ruff handles linting, import sorting, and formatting (config in pyproject.toml):

uv run pre-commit install         # run on every commit
uv run pre-commit run --all-files # run manually

Production

See docs/setup-and-run.md. Short version: fill .envs/.production/ (copy from .envs/.production(example)/, generate secrets with openssl rand -hex 32), add TLS certs, then:

docker compose -f production.yml up -d --build

Deployment repo: https://github.com/firdavsDev/docker-template-deployment

About

Enjoy life ;)

Resources

Readme
MIT license
Activity

Stars

14 stars

Watchers

2 watching

Forks

5 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.