postgress: add healthcheck
This commit is contained in:
@@ -9,3 +9,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- "${DOCKER_STORAGE_PATH}/postgres:/var/lib/postgresql/data"
|
- "${DOCKER_STORAGE_PATH}/postgres:/var/lib/postgresql/data"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
interval: 30s
|
||||||
|
retries: 5
|
||||||
|
start_period: 20s
|
||||||
|
test:
|
||||||
|
- CMD-SHELL
|
||||||
|
- pg_isready
|
||||||
|
timeout: 5s
|
||||||
Reference in New Issue
Block a user