Skip to content

Commit 37c73f5

Browse files
author
Dennis Labordus
committed
Changed the healthy check for PostgreSQL.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 95ac2d1 commit 37c73f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compas/docker-compose-postgresql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ services:
1616
- POSTGRES_DB=compas
1717
- PGDATA=/var/lib/postgresql/data/compas
1818
healthcheck:
19-
test: /usr/bin/pg_isready
19+
test: ["CMD-SHELL", "pg_isready -U postgres"]
2020
interval: 5s
2121
timeout: 10s
22-
retries: 120
22+
retries: 10
2323
volumes:
2424
- postgresql-data-volume:/var/lib/postgresql/data
2525

0 commit comments

Comments
 (0)