Dockerize scha and wire Gitea CI/CD for server-infra deploy.
CI / test (pull_request) Successful in 4s
Unit Tests / test (pull_request) Successful in 3s

Move secrets and DB config to env-driven settings so prod can run on shared Postgres behind deploy.sh, matching company_site.
This commit is contained in:
2026-07-14 05:11:41 -05:00
parent b97d5ac792
commit 2081210b78
24 changed files with 1232 additions and 150 deletions
+32
View File
@@ -0,0 +1,32 @@
# Local development environment file (copy to .env).
# For production server values, use .env.prod.example instead.
DJANGO_ENV=dev
DJANGO_DEBUG=true
DJANGO_SECRET_KEY=change-me-for-local-development
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
# Optional; when unset, http:// origins are derived for local hosts.
# DJANGO_CSRF_TRUSTED_ORIGINS=http://localhost:8000,http://127.0.0.1:8000
# Database (docker-compose sets DATABASE_URL for the web service)
DATABASE_URL=postgres://scha:scha@db:5432/scha
# DB_HOST=db
# DB_PORT=5432
# DB_NAME=scha
# DB_USER=scha
# DB_PASSWORD=scha
# Logging
# DJANGO_LOG_LEVEL=DEBUG
# Stripe (use test keys locally)
STRIPE_PUBLISHABLE_KEY=
STRIPE_SECRET_KEY=
STRIPE_ENDPOINT_SECRET=
# reCAPTCHA
RECAPTCHA_PUBLIC_KEY=
RECAPTCHA_PRIVATE_KEY=
# Gunicorn
GUNICORN_WORKERS=2
GUNICORN_BIND=0.0.0.0:8000