Extra health checks and route qbittorrent through VPN

This commit is contained in:
Shaun Collins
2026-03-13 12:40:46 +00:00
committed by shaun collins
parent a0530fb095
commit aa064c3dbc
3 changed files with 67 additions and 37 deletions
+30 -29
View File
@@ -120,33 +120,6 @@ services:
networks:
- lingen
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
ports:
- "8080:8080"
- "6881:6881"
- "6881:6881/udp"
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- WEBUI_PORT=8080
volumes:
- ./Radarr/config:/config
- ${TVSHOWS}:/data/tvshows
- ${MOVIES}:/data/movies
- ${DOWNLOADS}:/data/downloads
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
start_period: 30s
timeout: 5s
interval: 30s
retries: 3
restart: unless-stopped
networks:
- lingen
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
container_name: flaresolverr
@@ -187,7 +160,7 @@ services:
cap_drop:
- ALL
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3002/api/health" ]
test: ["CMD-SHELL", "wget -q -O- http://localhost:3000/api/health || exit 1"]
interval: 30s
timeout: 5s
start_period: 10s
@@ -211,8 +184,11 @@ services:
ports:
- "51820:51820/udp"
- "8000:8000"
- "8080:8080" # Add qBittorrent WebUI port
- "6881:6881" # Add qBittorrent listening port
- "6881:6881/udp" # Add qBittorrent listening port UDP
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/v1/vpn/status"]
test: ["CMD-SHELL", "wget -q -O- http://localhost:8000/v1/vpn/status || exit 1"]
start_period: 30s
timeout: 5s
interval: 30s
@@ -221,6 +197,31 @@ services:
- lingen
restart: unless-stopped
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- WEBUI_PORT=8080
volumes:
- ./Radarr/config:/config
- ${TVSHOWS}:/data/tvshows
- ${MOVIES}:/data/movies
- ${DOWNLOADS}:/data/downloads
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
start_period: 30s
timeout: 5s
interval: 30s
retries: 3
restart: unless-stopped
network_mode: "container:gluetun"
depends_on:
gluetun:
condition: service_healthy
networks:
lingen:
driver: bridge