Add postgres health check
This commit is contained in:
parent
8d46b8a152
commit
cc41042fb0
@ -9,6 +9,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./data/postgres:/var/lib/postgresql/data/
|
- ./data/postgres:/var/lib/postgresql/data/
|
||||||
restart: always
|
restart: always
|
||||||
|
healthcheck:
|
||||||
|
test: pg_isready -U drone -d dronedb
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
server:
|
server:
|
||||||
image: drone/drone:latest
|
image: drone/drone:latest
|
||||||
|
Reference in New Issue
Block a user