Added healthcheck to gitea postgres

master
Jef Roosens 2021-12-24 11:52:32 +01:00
parent 417627385c
commit f6ed76d01d
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
1 changed files with 60 additions and 53 deletions

View File

@ -48,6 +48,13 @@ services:
constraints:
- 'node.labels.class==gitea'
healthcheck:
test: pg_isready
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
environment:
- 'POSTGRES_USER=gitea'
- 'POSTGRES_PASSWORD=gitea'