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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user