Add docker healthy check for PostgreSQL

This commit is contained in:
xbgmsharp
2023-02-01 23:59:22 +01:00
parent 569700e1b3
commit ddbeff7d7e

View File

@@ -18,6 +18,12 @@ services:
logging:
options:
max-size: 10m
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d signalk'"]
interval: 60s
timeout: 30s
retries: 5
start_period: 100s
api:
image: postgrest/postgrest