healthcheck added to all compose files that contain storagebox or seedbox

This commit is contained in:
jonas@geiger-natur.de
2026-10-11 14:53:23 +02:00
parent e779440ef7
commit 723bbb620d
8 changed files with 85 additions and 4 deletions
@@ -4,6 +4,16 @@ services:
restart: unless-stopped
expose:
- 80
healthcheck:
test:
[
"CMD-SHELL",
"timeout 10 ls /audiobooks >/dev/null 2>&1 || exit 1"
]
interval: 30s
timeout: 15s
retries: 3
start_period: 60s
environment:
- TZ=Europe/Berlin
volumes:
+10
View File
@@ -13,6 +13,16 @@ services:
- rclone.storage=storagebox-crypt
volumes:
- /opt/media/storagebox/firefly/upload:/var/www/html/storage/upload
healthcheck:
test:
[
"CMD-SHELL",
"timeout 10 ls /var/www/html/storage/upload >/dev/null 2>&1 || exit 1"
]
interval: 30s
timeout: 15s
retries: 3
start_period: 60s
environment:
SITE_OWNER: ${SITE_OWNER}
DB_CONNECTION: ${DB_CONNECTION}
+7 -2
View File
@@ -32,10 +32,15 @@ services:
UPLOAD_LOCATION: ${UPLOAD_LOCATION}
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:2283/api/server/ping"]
test:
[
"CMD-SHELL",
"curl -f http://localhost:2283/api/server/ping >/dev/null 2>&1 && timeout 10 ls /usr/src/app/upload >/dev/null 2>&1 || exit 1"
]
interval: 30s
timeout: 10s
timeout: 15s
retries: 3
start_period: 60s
immich-machine-learning:
image: ghcr.io/immich-app/immich-machine-learning:v3.1.0
+10
View File
@@ -8,6 +8,16 @@ services:
memory: 1G
volumes:
- /opt/media/storagebox/mealie:/app/data/
healthcheck:
test:
[
"CMD-SHELL",
"timeout 10 ls /app/data >/dev/null 2>&1 || exit 1"
]
interval: 30s
timeout: 15s
retries: 3
start_period: 60s
environment:
PUID: 1000
PGID: 1000
+10
View File
@@ -21,6 +21,16 @@ services:
volumes:
- /opt/media/storagebox/paperless/consume:/home/node/paperless/consume:rw
- n8n_data:/home/node/.n8n
healthcheck:
test:
[
"CMD-SHELL",
"timeout 10 ls /home/node/paperless/consume >/dev/null 2>&1 || exit 1"
]
interval: 30s
timeout: 15s
retries: 3
start_period: 60s
volumes:
n8n_data:
+10
View File
@@ -14,6 +14,16 @@ services:
volumes:
- nextcloud_data:/var/www/html
- /opt/media/storagebox/nextcloud:/mnt/storagebox
healthcheck:
test:
[
"CMD-SHELL",
"timeout 10 ls /mnt/storagebox >/dev/null 2>&1 || exit 1"
]
interval: 30s
timeout: 15s
retries: 3
start_period: 60s
environment:
- NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_DOMAIN}
- MYSQL_HOST=nextcloud_db
+7 -2
View File
@@ -30,10 +30,15 @@ services:
PAPERLESS_OCR_OUTPUT_TYPE: ${PAPERLESS_OCR_OUTPUT_TYPE}
PAPERLESS_SECRET_KEY: ${PAPERLESS_SECRET_KEY}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
test:
[
"CMD-SHELL",
"curl -f http://localhost:8000 >/dev/null 2>&1 && timeout 10 ls /usr/src/paperless/consume >/dev/null 2>&1 || exit 1"
]
interval: 30s
timeout: 10s
timeout: 15s
retries: 5
start_period: 60s
networks:
- dokploy-network
+21
View File
@@ -46,6 +46,16 @@ services:
- /opt/media/seedbox:/data:rshared
- ./logs/seedbox:/logs
healthcheck:
test:
[
"CMD-SHELL",
"timeout 10 ls /data >/dev/null 2>&1 || exit 1"
]
interval: 30s
timeout: 15s
retries: 3
start_period: 60s
rclone-storagebox-crypt:
image: rclone/rclone:1.75.1
@@ -91,3 +101,14 @@ services:
- /opt/rclone/ssh:/root/.ssh:ro
- /opt/media/storagebox:/data:rshared
- ./logs/storagebox:/logs
healthcheck:
test:
[
"CMD-SHELL",
"timeout 10 ls /data >/dev/null 2>&1 || exit 1"
]
interval: 30s
timeout: 15s
retries: 3
start_period: 60s