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:
@@ -18,6 +18,7 @@ services:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- DJANGO_SECRET_KEY=${SECRET_KEY}
|
||||
- SECRET_KEY=${SECRET_KEY}
|
||||
- PGHOST=adventurelog-postgres
|
||||
- PGDATABASE=adventurelog
|
||||
- PGUSER=adventurelog
|
||||
@@ -34,9 +35,9 @@ services:
|
||||
limits:
|
||||
memory: 384M
|
||||
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
|
||||
timeout: 5s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
adventurelog-postgres:
|
||||
@@ -86,7 +87,7 @@ services:
|
||||
limits:
|
||||
memory: 256M
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"]
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:3000"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user