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
+14 -4
View File
@@ -34,6 +34,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/mariadb:12
restart: unless-stopped
@@ -45,14 +47,20 @@ services:
MARIADB_USER: paperless
MARIADB_PASSWORD: paperless
MARIADB_ROOT_PASSWORD: paperless
healthcheck:
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost"]
webserver:
image: ghcr.io/paperless-ngx/paperless-ngx:latest
restart: unless-stopped
depends_on:
- db
- broker
- gotenberg
- tika
db:
condition: service_healthy
broker:
condition: service_healthy
gotenberg:
condition: service_healthy
tika:
condition: service_started
ports:
- "8000:8000"
volumes:
@@ -80,6 +88,8 @@ services:
- "gotenberg"
- "--chromium-disable-javascript=true"
- "--chromium-allow-list=file:///tmp/.*"
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:3000/health | grep -q '\"status\":\"up\"'"]
tika:
image: docker.io/apache/tika:latest
restart: unless-stopped
+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/mariadb:12
restart: unless-stopped
@@ -41,12 +43,16 @@ services:
MARIADB_USER: paperless
MARIADB_PASSWORD: paperless
MARIADB_ROOT_PASSWORD: paperless
healthcheck:
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost"]
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:
@@ -34,6 +34,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
@@ -43,14 +45,20 @@ 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
- gotenberg
- tika
db:
condition: service_healthy
broker:
condition: service_healthy
gotenberg:
condition: service_healthy
tika:
condition: service_started
ports:
- "8000:8000"
volumes:
@@ -75,6 +83,8 @@ services:
- "gotenberg"
- "--chromium-disable-javascript=true"
- "--chromium-allow-list=file:///tmp/.*"
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:3000/health | grep -q '\"status\":\"up\"'"]
tika:
image: docker.io/apache/tika:latest
restart: unless-stopped
+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:
+10 -3
View File
@@ -34,13 +34,18 @@ services:
restart: unless-stopped
volumes:
- redisdata:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep -q PONG || exit 1"]
webserver:
image: ghcr.io/paperless-ngx/paperless-ngx:latest
restart: unless-stopped
depends_on:
- broker
- gotenberg
- tika
broker:
condition: service_healthy
gotenberg:
condition: service_healthy
tika:
condition: service_started
ports:
- "8000:8000"
volumes:
@@ -64,6 +69,8 @@ services:
- "gotenberg"
- "--chromium-disable-javascript=true"
- "--chromium-allow-list=file:///tmp/.*"
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:3000/health | grep -q '\"status\":\"up\"'"]
tika:
image: docker.io/apache/tika:latest
restart: unless-stopped
+4 -1
View File
@@ -27,11 +27,14 @@ services:
restart: unless-stopped
volumes:
- redisdata:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep -q PONG || exit 1"]
webserver:
image: ghcr.io/paperless-ngx/paperless-ngx:latest
restart: unless-stopped
depends_on:
- broker
broker:
condition: service_healthy
ports:
- "8000:8000"
volumes: