reworded docker compose files to segregate responsibilites. Dev version no longer uses the nginx proxy to proxy, merely to be the static file server. Also dev version no longer used gunicorn as it was screwing up the live reload functionality and didn't provide any other benefit.

This commit is contained in:
Wouter Vermeer
2026-04-30 17:41:21 +02:00
parent a0a0cfab8a
commit 358bd4cbf2
4 changed files with 52 additions and 31 deletions

View File

@@ -1,14 +1,17 @@
---
services:
web:
command: python manage.py check --deploy; python -Wa manage.py test --noinput --parallel
restart: "no"
command: python manage.py check --deploy; python -Wa manage.py test --noinput
--parallel
environment:
DEBUG: false
DJANGO_SETTINGS_MODULE: website.settings.test
env_file:
- path: .env.template
required: true
db:
# Tmpfs keeps tests fast and isolated — no persistent volume needed
tmpfs: [/var/lib/postgresql/data]
env_file:
- path: .env.template
required: true