Add postgres healthchecks

This commit is contained in:
2024-01-10 09:00:44 +01:00
parent ea11a14c2d
commit ac0335c9b5
5 changed files with 13 additions and 8 deletions

View File

@ -14,7 +14,7 @@ services:
networks:
- backend
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "keycloak"]
test: ["CMD-SHELL", "pg_isready", "-U", "{{ auth.db.user }}"]
interval: 10s
timeout: 5s
retries: 5