1
0
mirror of https://github.com/tommytran732/Vaultwarden-Docker-Compose synced 2024-12-22 11:51:34 -05:00

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

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: