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