Healthchecks hinzugefügt
This commit is contained in:
@@ -25,4 +25,10 @@ services:
|
||||
- /media/Musik:/music:ro
|
||||
- ./data:/data
|
||||
- ./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: {}
|
||||
|
||||
@@ -32,6 +32,12 @@ services:
|
||||
resources:
|
||||
limits:
|
||||
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:
|
||||
image: collabora/code:latest
|
||||
@@ -49,4 +55,14 @@ services:
|
||||
- extra_params=--o:ssl.enable=false # If internal; true + certs for prod
|
||||
ports:
|
||||
- 9380:9980
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- -f
|
||||
- http://192.168.178.183:9380
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
networks: {}
|
||||
|
||||
@@ -4,6 +4,7 @@ services:
|
||||
container_name: nginx
|
||||
labels:
|
||||
- wud.watch=true
|
||||
- com.hanold.environment=production
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
@@ -17,4 +18,10 @@ services:
|
||||
- ./data:/data
|
||||
- ./letsencrypt:/etc/letsencrypt
|
||||
- ./snippets:/snippets
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost/ || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 5s
|
||||
networks: {}
|
||||
|
||||
Reference in New Issue
Block a user