Add postgres healthcheck

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

View File

@ -56,6 +56,10 @@ services:
- POSTGRES_PASSWORD=YOUR_POSTGRESQL_PASSWORD
networks:
- postgres
healthcheck:
test: ["CMD", "pg_isready", "-U", "vaultwarden"]
interval: 15s
timeout: 5s
user: "70:70"
read_only: true
tmpfs: