ajout de portainer_data apres l'avoir recup dans le container
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
services:
|
||||
|
||||
gluetun:
|
||||
image: qmcgaw/gluetun:latest
|
||||
container_name: gluetun
|
||||
restart: unless-stopped
|
||||
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
|
||||
devices:
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
|
||||
environment:
|
||||
- VPN_SERVICE_PROVIDER=protonvpn
|
||||
- VPN_TYPE=wireguard
|
||||
- WIREGUARD_PRIVATE_KEY=uH1wsAfFiVMErAOa0x1cB5LrIVVBA/qGDt65Xx6oynw=
|
||||
- VPN_PORT_FORWARDING=on
|
||||
- PORT_FORWARD_ONLY=on
|
||||
|
||||
- VPN_PORT_FORWARDING_STATUS_FILE=/gluetun/forwarded_port
|
||||
|
||||
- VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c 'wget -O- -nv --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'
|
||||
|
||||
- VPN_PORT_FORWARDING_DOWN_COMMAND=/bin/sh -c 'wget -O- -nv --retry-connrefused --post-data "json={\"listen_port\":0,\"current_network_interface\":\"lo\"}" http://127.0.0.1:8080/api/v2/app/setPreferences'
|
||||
|
||||
- TZ=Europe/Paris
|
||||
- FIREWALL_OUTBOUND_SUBNETS=192.168.1.0/24
|
||||
|
||||
volumes:
|
||||
- /home/serveur/qbittorrent/gluetun:/gluetun
|
||||
|
||||
ports:
|
||||
- "8080:8080"
|
||||
|
||||
networks:
|
||||
- reverse-proxy_default
|
||||
|
||||
|
||||
qbittorrent:
|
||||
image: qbittorrentofficial/qbittorrent-nox:latest
|
||||
container_name: qbittorrent
|
||||
restart: unless-stopped
|
||||
|
||||
network_mode: "service:gluetun"
|
||||
|
||||
depends_on:
|
||||
- gluetun
|
||||
|
||||
environment:
|
||||
- QBT_WEBUI_PORT=8080
|
||||
- TZ=Europe/Paris
|
||||
|
||||
volumes:
|
||||
- /home/serveur/qbittorrent/config:/config
|
||||
- /media/NAS/downloads:/downloads
|
||||
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
||||
# WebUI qBittorrent
|
||||
- "traefik.http.routers.qbittorrent.rule=Host(`qbittorrent.tuttifruitti.ddns.net`)"
|
||||
- "traefik.http.routers.qbittorrent.entrypoints=websecure"
|
||||
- "traefik.http.routers.qbittorrent.tls=true"
|
||||
- "traefik.http.routers.qbittorrent.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.qbittorrent.service=qbittorrent"
|
||||
|
||||
# qBittorrent écoute toujours sur 8080
|
||||
- "traefik.http.services.qbittorrent.loadbalancer.server.port=8080"
|
||||
|
||||
|
||||
networks:
|
||||
reverse-proxy_default:
|
||||
external: true
|
||||
Reference in New Issue
Block a user