Adds container health checks to those where it is possible

This commit is contained in:
stumpylog
2026-05-20 07:36:52 -07:00
parent 6cd5784bd7
commit 2c9a0fc9d5
6 changed files with 58 additions and 16 deletions
+8 -2
View File
@@ -30,6 +30,8 @@ services:
restart: unless-stopped
volumes:
- redisdata:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep -q PONG || exit 1"]
db:
image: docker.io/library/postgres:18
restart: unless-stopped
@@ -39,12 +41,16 @@ services:
POSTGRES_DB: paperless
POSTGRES_USER: paperless
POSTGRES_PASSWORD: paperless
healthcheck:
test: ["CMD", "pg_isready", "-U", "paperless"]
webserver:
image: ghcr.io/paperless-ngx/paperless-ngx:latest
restart: unless-stopped
depends_on:
- db
- broker
db:
condition: service_healthy
broker:
condition: service_healthy
ports:
- "8000:8000"
volumes: