mirror of
https://gitlab.com/rusty-bever/deployment.git
synced 2026-04-08 11:55:47 +02:00
Added healthcheck to gitea postgres
This commit is contained in:
parent
417627385c
commit
f6ed76d01d
1 changed files with 60 additions and 53 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue