Update downloader.docker-compose.yml

This commit is contained in:
KARMACOMA 2025-11-26 03:39:03 +00:00
parent fa4b083895
commit 5c86970fd0

View file

@ -34,10 +34,9 @@ services:
- 8388:8388/tcp # Shadowsocks
- 8388:8388/udp # Shadowsocks
environment:
- VPN_PORT_FORWARDING_STATUS_FILE=/tmp/gluetun/forwarded_port
- VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c 'wget -O- --retry-connrefused --post-data "json={\"listen_port\":{{PORT}},\"current_network_interface\":\"{{VPN_INTERFACE}}\",\"random_port\":false,\"upnp\":false}" http://127.0.0.1:8080/api/v2/app/setPreferences 2>&1' VPN_PORT_FORWARDING_DOWN_COMMAND=/bin/sh -c 'wget -O- --retry-connrefused --post-data "json={\"listen_port\":0,\"current_network_interface\":\"lo"}" http://127.0.0.1:8080/api/v2/app/setPreferences 2>&1'
volumes:
- gluetun:/gluetun
- gluetun_port:/tmp/gluetun
networks:
- array
labels:
@ -67,32 +66,6 @@ services:
- "traefik.http.routers.gluetun-http.priority=100"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
array-qbt-gt-portmapping:
image: patrickaclark/gluetun-qbittorrent-port-manager:latest
restart: unless-stopped
container_name: array-qbt-gt-portmapping
network_mode: "service:array-gluetun"
volumes:
- gluetun_port:/tmp/gluetun
environment:
- QBITTORRENT_SERVER=localhost # IP Address of qbittorrent
- QBITTORRENT_PORT=8080
- PORT_FORWARDED=/tmp/gluetun/forwarded_port
- HTTP_S=http # Select 'http' or 'https' depending on if you use certificates.
- GLUETUN_HOST=localhost # IP or FQDN of gluetun control server
- GLUETUN_PORT=8000 # port of gluetun control server
- RECHECK_TIME=60 # number of seconds between checks to gluetun server for port
- TZ=Europe/Berlin
healthcheck:
test: ["CMD", "curl", "-H", "Authorization: $controlServerAuthKey", "-s", "http://localhost:8000/v1/openvpn/status", "|", "grep", "-q", '{"status":"running"}']
interval: 30s
timeout: 10s
start_period: 60s
retries: 3
volumes:
gluetun_port:
networks:
array:
external: true