mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 03:07:47 +00:00
Add docker healthy check for PostgreSQL
This commit is contained in:
@@ -18,6 +18,12 @@ services:
|
|||||||
logging:
|
logging:
|
||||||
options:
|
options:
|
||||||
max-size: 10m
|
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:
|
api:
|
||||||
image: postgrest/postgrest
|
image: postgrest/postgrest
|
||||||
|
Reference in New Issue
Block a user