Add postgres healthcheck

This commit is contained in:
BBaoVanC 2021-08-20 15:43:33 -05:00
parent 6174022f54
commit 626ff1381b

View File

@ -10,6 +10,11 @@ services:
- ./data/postgres:/var/lib/postgresql/data/
- ./data/progs:/progs
restart: always
healthcheck:
test: pg_isready -U gitea -d giteadb
interval: 10s
timeout: 5s
retries: 5
gitea:
image: gitea/gitea:1