Added healthcheck to gitea postgres
parent
417627385c
commit
f6ed76d01d
|
@ -48,6 +48,13 @@ services:
|
||||||
constraints:
|
constraints:
|
||||||
- 'node.labels.class==gitea'
|
- 'node.labels.class==gitea'
|
||||||
|
|
||||||
|
healthcheck:
|
||||||
|
test: pg_isready
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
|
start_period: 15s
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- 'POSTGRES_USER=gitea'
|
- 'POSTGRES_USER=gitea'
|
||||||
- 'POSTGRES_PASSWORD=gitea'
|
- 'POSTGRES_PASSWORD=gitea'
|
||||||
|
|
Loading…
Reference in New Issue