mirror of
https://github.com/JG2401/HetznerDokployLab.git
synced 2026-10-28 21:00:47 +00:00
healthcheck added to all compose files that contain storagebox or seedbox
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user