add healthcheck to postgres images

This commit is contained in:
Gabriel Augendre 2025-03-18 09:06:17 +01:00
parent 166cf7d71f
commit 98ee30fba0
2 changed files with 12 additions and 0 deletions
playbooks/apps
files/miniflux
templates/manuels

View file

@ -17,3 +17,9 @@ services:
volumes:
- ./db_data:/var/lib/postgresql/data
mem_limit: 512m
healthcheck:
test: ["CMD", "pg_isready", "-d", "miniflux"]
interval: 10s
timeout: 10s
retries: 5
start_period: 80s

View file

@ -22,3 +22,9 @@ services:
POSTGRES_DB: "manuels"
volumes:
- ./db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-d", "manuels"]
interval: 10s
timeout: 10s
retries: 5
start_period: 80s