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
|
restart: unless-stopped
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 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:
|
environment:
|
||||||
- TZ=Europe/Berlin
|
- TZ=Europe/Berlin
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -13,6 +13,16 @@ services:
|
|||||||
- rclone.storage=storagebox-crypt
|
- rclone.storage=storagebox-crypt
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/media/storagebox/firefly/upload:/var/www/html/storage/upload
|
- /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:
|
environment:
|
||||||
SITE_OWNER: ${SITE_OWNER}
|
SITE_OWNER: ${SITE_OWNER}
|
||||||
DB_CONNECTION: ${DB_CONNECTION}
|
DB_CONNECTION: ${DB_CONNECTION}
|
||||||
|
|||||||
@@ -32,10 +32,15 @@ services:
|
|||||||
UPLOAD_LOCATION: ${UPLOAD_LOCATION}
|
UPLOAD_LOCATION: ${UPLOAD_LOCATION}
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 15s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
start_period: 60s
|
||||||
|
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
image: ghcr.io/immich-app/immich-machine-learning:v3.1.0
|
image: ghcr.io/immich-app/immich-machine-learning:v3.1.0
|
||||||
|
|||||||
@@ -8,6 +8,16 @@ services:
|
|||||||
memory: 1G
|
memory: 1G
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/media/storagebox/mealie:/app/data/
|
- /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:
|
environment:
|
||||||
PUID: 1000
|
PUID: 1000
|
||||||
PGID: 1000
|
PGID: 1000
|
||||||
|
|||||||
@@ -21,6 +21,16 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /opt/media/storagebox/paperless/consume:/home/node/paperless/consume:rw
|
- /opt/media/storagebox/paperless/consume:/home/node/paperless/consume:rw
|
||||||
- n8n_data:/home/node/.n8n
|
- 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:
|
volumes:
|
||||||
n8n_data:
|
n8n_data:
|
||||||
|
|||||||
@@ -14,6 +14,16 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- nextcloud_data:/var/www/html
|
- nextcloud_data:/var/www/html
|
||||||
- /opt/media/storagebox/nextcloud:/mnt/storagebox
|
- /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:
|
environment:
|
||||||
- NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_DOMAIN}
|
- NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_DOMAIN}
|
||||||
- MYSQL_HOST=nextcloud_db
|
- MYSQL_HOST=nextcloud_db
|
||||||
|
|||||||
@@ -30,10 +30,15 @@ services:
|
|||||||
PAPERLESS_OCR_OUTPUT_TYPE: ${PAPERLESS_OCR_OUTPUT_TYPE}
|
PAPERLESS_OCR_OUTPUT_TYPE: ${PAPERLESS_OCR_OUTPUT_TYPE}
|
||||||
PAPERLESS_SECRET_KEY: ${PAPERLESS_SECRET_KEY}
|
PAPERLESS_SECRET_KEY: ${PAPERLESS_SECRET_KEY}
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 15s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
start_period: 60s
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,16 @@ services:
|
|||||||
- /opt/media/seedbox:/data:rshared
|
- /opt/media/seedbox:/data:rshared
|
||||||
- ./logs/seedbox:/logs
|
- ./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:
|
rclone-storagebox-crypt:
|
||||||
image: rclone/rclone:1.75.1
|
image: rclone/rclone:1.75.1
|
||||||
@@ -91,3 +101,14 @@ services:
|
|||||||
- /opt/rclone/ssh:/root/.ssh:ro
|
- /opt/rclone/ssh:/root/.ssh:ro
|
||||||
- /opt/media/storagebox:/data:rshared
|
- /opt/media/storagebox:/data:rshared
|
||||||
- ./logs/storagebox:/logs
|
- ./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