1
0
mirror of https://github.com/tommytran732/Vaultwarden-Docker-Compose synced 2024-11-14 17:01:32 -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 - POSTGRES_PASSWORD=YOUR_POSTGRESQL_PASSWORD
networks: networks:
- postgres - postgres
healthcheck:
test: ["CMD", "pg_isready", "-U", "vaultwarden"]
interval: 15s
timeout: 5s
user: "70:70" user: "70:70"
read_only: true read_only: true
tmpfs: tmpfs: