Add postgres health check

This commit is contained in:
BBaoVanC 2021-08-20 15:41:33 -05:00
parent 8d46b8a152
commit cc41042fb0
1 changed files with 5 additions and 0 deletions

View File

@ -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