From 3a24723c07eda253599fcdb62b03a6e5e7ae093c Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Mon, 23 Feb 2026 12:08:14 +0100 Subject: [PATCH] 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 --- templates/adventurelog/docker-compose.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/adventurelog/docker-compose.yml b/templates/adventurelog/docker-compose.yml index 084947c..3a3b4e7 100644 --- a/templates/adventurelog/docker-compose.yml +++ b/templates/adventurelog/docker-compose.yml @@ -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