Added healthchecks to matrix postgres containers

master
Jef Roosens 2021-12-24 11:59:05 +01:00
parent 049352e53c
commit 84e157a05b
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
1 changed files with 14 additions and 0 deletions

View File

@ -59,6 +59,13 @@ services:
placement:
constraints:
- 'node.labels.class==matrix'
healthcheck:
test: pg_isready
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
environment:
- 'POSTGRES_DB=matrix_fb'
@ -109,6 +116,13 @@ services:
constraints:
- 'node.labels.class==matrix'
healthcheck:
test: pg_isready
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
environment:
- 'POSTGRES_DB=matrix_signal'
- 'POSTGRES_USER=matrix_signal'