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