Added healthchecks to matrix postgres containers
parent
049352e53c
commit
84e157a05b
|
@ -59,6 +59,13 @@ services:
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- 'node.labels.class==matrix'
|
- 'node.labels.class==matrix'
|
||||||
|
|
||||||
|
healthcheck:
|
||||||
|
test: pg_isready
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
|
start_period: 15s
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- 'POSTGRES_DB=matrix_fb'
|
- 'POSTGRES_DB=matrix_fb'
|
||||||
|
@ -109,6 +116,13 @@ services:
|
||||||
constraints:
|
constraints:
|
||||||
- 'node.labels.class==matrix'
|
- 'node.labels.class==matrix'
|
||||||
|
|
||||||
|
healthcheck:
|
||||||
|
test: pg_isready
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
|
start_period: 15s
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- 'POSTGRES_DB=matrix_signal'
|
- 'POSTGRES_DB=matrix_signal'
|
||||||
- 'POSTGRES_USER=matrix_signal'
|
- 'POSTGRES_USER=matrix_signal'
|
||||||
|
|
Loading…
Reference in New Issue