Correction gunicorn

This commit is contained in:
ifaryd
2026-05-26 09:23:41 +00:00
parent 0c52766f8a
commit 8e28e61c65
7 changed files with 99 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ services:
- postgres_data_dev:/var/lib/postgresql/data
env_file: .env.dev
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
@@ -24,14 +24,7 @@ services:
depends_on:
db:
condition: service_healthy
command: >
sh -c "python manage.py migrate --noinput &&
gunicorn config.wsgi:application
--bind 0.0.0.0:8000
--workers 2
--timeout 60
--access-logfile -
--error-logfile -"
command: sh -c "python manage.py migrate --noinput && gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 2 --timeout 60 --access-logfile - --error-logfile -"
# ── Caddy (reverse proxy + HTTPS automatique) ───────────
caddy: