Skip to content

Commit 1996384

Browse files
authored
featureflagservice: add healthcheck to postgres dependency (#315)
1 parent fcbc106 commit 1996384

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ services:
316316
- OTEL_SERVICE_NAME=featureflagservice
317317
- DATABASE_URL=ecto://ffs:ffs@ffs_postgres:5432/ffs
318318
depends_on:
319-
- ffs_postgres
319+
ffs_postgres:
320+
condition: service_healthy
320321
logging: *logging
321322

322323
ffs_postgres:
@@ -327,6 +328,11 @@ services:
327328
- POSTGRES_DB=ffs
328329
- POSTGRES_PASSWORD=ffs
329330
logging: *logging
331+
healthcheck:
332+
test: ["CMD-SHELL", "pg_isready"]
333+
interval: 10s
334+
timeout: 5s
335+
retries: 5
330336

331337
# LoadGenerator
332338
loadgenerator:

0 commit comments

Comments
 (0)