fix(adventurelog): healthcheck + SECRET_KEY for v0.11.0

Backend: wget missing from image, use python urllib instead.
Frontend: localhost resolves to IPv6, use 127.0.0.1.
Backend: add SECRET_KEY env var (v0.11.0 reads it directly).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 12:08:14 +01:00
parent 5b23e89c6a
commit 3a24723c07
+4 -3
View File
@@ -18,6 +18,7 @@ services:
condition: service_healthy condition: service_healthy
environment: environment:
- DJANGO_SECRET_KEY=${SECRET_KEY} - DJANGO_SECRET_KEY=${SECRET_KEY}
- SECRET_KEY=${SECRET_KEY}
- PGHOST=adventurelog-postgres - PGHOST=adventurelog-postgres
- PGDATABASE=adventurelog - PGDATABASE=adventurelog
- PGUSER=adventurelog - PGUSER=adventurelog
@@ -34,9 +35,9 @@ services:
limits: limits:
memory: 384M memory: 384M
healthcheck: healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8000/api/"] test: ["CMD-SHELL", "python -c 'import urllib.request; urllib.request.urlopen(\"http://127.0.0.1:8000/api/\")'"]
interval: 30s interval: 30s
timeout: 5s timeout: 10s
retries: 3 retries: 3
start_period: 30s start_period: 30s
adventurelog-postgres: adventurelog-postgres:
@@ -86,7 +87,7 @@ services:
limits: limits:
memory: 256M memory: 256M
healthcheck: healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"] test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:3000"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5