fix: make it env agnostic (--env-file should be used)

This commit is contained in:
2025-12-25 18:40:51 +01:00
parent 08856f9a8d
commit 02fd3c0aea

View File

@@ -4,8 +4,6 @@ services:
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
env_file:
- ../.env
environment: environment:
DB_HOST: db DB_HOST: db
DB_PORT: ${DB_PORT:-5432} DB_PORT: ${DB_PORT:-5432}
@@ -26,7 +24,11 @@ services:
ports: ports:
- "8080:8080" - "8080:8080"
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:${SERVER_PORT:-8080}/health | grep -q '\"status\":\"healthy\"'"] test:
[
"CMD-SHELL",
'curl -fsS http://localhost:${SERVER_PORT:-8080}/health | grep -q ''"status":"healthy"''',
]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5