fix: make it env agnostic (--env-file should be used)
This commit is contained in:
@@ -4,8 +4,6 @@ services:
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
env_file:
|
||||
- ../.env
|
||||
environment:
|
||||
DB_HOST: db
|
||||
DB_PORT: ${DB_PORT:-5432}
|
||||
@@ -26,7 +24,11 @@ services:
|
||||
ports:
|
||||
- "8080:8080"
|
||||
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
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user