feat(navidrome): enhance caddy container configuration
Add persistent volume mounts for caddy config, data, and share directories, and improve healthcheck settings with longer intervals, timeout, and start period for better reliability
This commit is contained in:
parent
d5f9890dc8
commit
d7efa69de6
@ -29,13 +29,17 @@ services:
|
|||||||
network_mode: service:tailscale
|
network_mode: service:tailscale
|
||||||
volumes:
|
volumes:
|
||||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||||
|
- /srv/docker/navidrome/caddy/config/:/config/caddy:rw
|
||||||
|
- /srv/docker/navidrome/caddy/data/:/data/caddy:rw
|
||||||
|
- /srv/docker/navidrome/caddy/share/:/usr/share/caddy:rw
|
||||||
env_file:
|
env_file:
|
||||||
- caddy.env
|
- caddy.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--spider", "-q", "https://music.lan.poldebra.me"]
|
test: ["CMD", "wget", "--spider", "-q", "https://music.lan.poldebra.me"]
|
||||||
interval: 5s
|
interval: 10s
|
||||||
timeout: 10s
|
timeout: 30s
|
||||||
retries: 3
|
retries: 5
|
||||||
|
start_period: 90s
|
||||||
depends_on:
|
depends_on:
|
||||||
app:
|
app:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
Loading…
x
Reference in New Issue
Block a user