Healthchecks hinzugefügt
This commit is contained in:
@@ -25,4 +25,10 @@ services:
|
|||||||
- /media/Musik:/music:ro
|
- /media/Musik:/music:ro
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
- ./navidrome.toml:/config/navidrome.toml
|
- ./navidrome.toml:/config/navidrome.toml
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:4533/ping"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 40s
|
||||||
networks: {}
|
networks: {}
|
||||||
|
|||||||
+21
-5
@@ -7,10 +7,10 @@ services:
|
|||||||
hostname: https://nextcloud-app.hanold.online
|
hostname: https://nextcloud-app.hanold.online
|
||||||
volumes:
|
volumes:
|
||||||
- ./nextcloud-data:/var/www/html
|
- ./nextcloud-data:/var/www/html
|
||||||
# - /media/webdav/Dokumente:/mnt/WebDav_Dokumente
|
# - /media/webdav/Dokumente:/mnt/WebDav_Dokumente
|
||||||
- /media/Daten/Nextcloud:/mnt/Heimserver
|
- /media/Daten/Nextcloud:/mnt/Heimserver
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /tmp:size=1G # Ensures /tmp writable, clears restarts
|
- /tmp:size=1G # Ensures /tmp writable, clears restarts
|
||||||
init: true
|
init: true
|
||||||
ports:
|
ports:
|
||||||
- 9180:80
|
- 9180:80
|
||||||
@@ -32,6 +32,12 @@ services:
|
|||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 4G
|
memory: 4G
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "runuser -u www-data -- php /var/www/html/occ status | grep -e 'installed: true' -e 'maintenance: false' -e 'needsDbUpgrade: false' | wc -l | grep -q 3 || exit 1"]
|
||||||
|
interval: 60s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
start_period: 20s
|
||||||
|
|
||||||
collabora:
|
collabora:
|
||||||
image: collabora/code:latest
|
image: collabora/code:latest
|
||||||
@@ -44,9 +50,19 @@ services:
|
|||||||
- MKNOD
|
- MKNOD
|
||||||
environment:
|
environment:
|
||||||
- domain=nextcloud-app\.hanold\.online
|
- domain=nextcloud-app\.hanold\.online
|
||||||
# - username=admin # Or blank
|
# - username=admin # Or blank
|
||||||
# - password=yourpass
|
# - password=yourpass
|
||||||
- extra_params=--o:ssl.enable=false # If internal; true + certs for prod
|
- extra_params=--o:ssl.enable=false # If internal; true + certs for prod
|
||||||
ports:
|
ports:
|
||||||
- 9380:9980
|
- 9380:9980
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
- CMD
|
||||||
|
- curl
|
||||||
|
- -f
|
||||||
|
- http://192.168.178.183:9380
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 60s
|
||||||
networks: {}
|
networks: {}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ services:
|
|||||||
container_name: nginx
|
container_name: nginx
|
||||||
labels:
|
labels:
|
||||||
- wud.watch=true
|
- wud.watch=true
|
||||||
|
- com.hanold.environment=production
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
@@ -17,4 +18,10 @@ services:
|
|||||||
- ./data:/data
|
- ./data:/data
|
||||||
- ./letsencrypt:/etc/letsencrypt
|
- ./letsencrypt:/etc/letsencrypt
|
||||||
- ./snippets:/snippets
|
- ./snippets:/snippets
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "curl -f http://localhost/ || exit 1"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 5s
|
||||||
networks: {}
|
networks: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user