Add postgres healthcheck

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2022-11-30 23:04:33 -05:00 committed by GitHub
parent 8ab7c6f66e
commit 81e933e77c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ services:
- ./schemas:/var/lib/postgresql/data:Z
networks:
- postgres
healthcheck:
test: ["CMD", "pg_isready", "-U", "synapse"]
interval: 15s
timeout: 5s
#user: "70:70"
#read_only: true
#security_opt: