mirror of
https://github.com/thecyberlearn/modern-django-starter.git
synced 2026-08-18 07:52:54 +00:00
✅ CLEANED FILES: - Removed 5 duplicate docker-compose files → kept 1 working docker-compose.dokploy.yml - Deleted debugging files: debug_settings.py, test-docker-build.sh, cookies.txt, entrypoint.sh - Removed redundant docs: DOKPLOY.md, DEPLOYMENT.md, QUICKSTART.md, Dockerfile.simple - Fixed all file references to use docker-compose.dokploy.yml consistently 📚 CLEAN DOCUMENTATION STRUCTURE: - README.md: Overview with quick links to deployment guides - QUICK_DEPLOY.md: 3-step deployment guide (zero code changes needed) - DEPLOYMENT_CHECKLIST.md: Complete troubleshooting reference - WARP.md: Developer/agent guidance 🎯 RESULT: - Clean, confusion-free project structure - Single source of truth for deployment - Zero hardcoded values - everything uses environment variables - Clone-and-deploy ready with minimal setup The project is now production-ready and maintainable! 🚀
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
services:
|
|
web:
|
|
build: .
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- DEBUG=True
|
|
- ALLOWED_HOSTS=${ALLOWED_HOSTS:-localhost,127.0.0.1}
|
|
- DATABASE_URL=${DATABASE_URL:-postgresql://django_user:django_password@db:5432/django_db}
|
|
- SECRET_KEY=${SECRET_KEY:-django-insecure-change-this-key}
|
|
- DJANGO_SETTINGS_MODULE=django_project.settings.production
|
|
- CSRF_TRUSTED_ORIGINS=${CSRF_TRUSTED_ORIGINS:-http://localhost:8000}
|
|
- DOMAIN_NAME=${DOMAIN_NAME:-localhost}
|
|
- SECURE_SSL_REDIRECT=False
|
|
- GOOGLE_OAUTH2_CLIENT_ID=${GOOGLE_OAUTH2_CLIENT_ID:-demo-google-client-id}
|
|
- GOOGLE_OAUTH2_CLIENT_SECRET=${GOOGLE_OAUTH2_CLIENT_SECRET:-demo-google-client-secret}
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- dokploy-network
|
|
command: >
|
|
sh -c "chmod +x /app/startup.sh && /app/startup.sh"
|
|
|
|
db:
|
|
image: postgres:15-alpine
|
|
environment:
|
|
- POSTGRES_DB=django_db
|
|
- POSTGRES_USER=django_user
|
|
- POSTGRES_PASSWORD=django_password
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
networks:
|
|
- dokploy-network
|
|
|
|
volumes:
|
|
postgres_data:
|
|
|
|
networks:
|
|
dokploy-network:
|
|
external: true
|