|
--- |
|
services: |
|
gluetun: |
|
# https://github.com/qdm12/gluetun |
|
image: ghcr.io/qdm12/gluetun:v3.40.1 |
|
container_name: gluetun |
|
restart: unless-stopped |
|
cap_add: |
|
- NET_ADMIN |
|
devices: |
|
- /dev/net/tun:/dev/net/tun |
|
volumes: |
|
- .../gluetun:/gluetun |
|
- ./gluetun-control-server.toml:/gluetun/auth/config.toml:ro |
|
env_file: ./.env |
|
environment: |
|
# https://github.com/qdm12/gluetun-wiki/blob/v3.40.0/setup/options/others.md |
|
- TZ=Etc/UTC |
|
- PUID=568 |
|
- PGID=568 |
|
|
|
# https://github.com/qdm12/gluetun-wiki/blob/v3.40.0/setup/options/control-server.md |
|
- HTTP_CONTROL_SERVER_LOG=off |
|
|
|
# https://github.com/qdm12/gluetun-wiki/blob/v3.40.0/setup/options/http-proxy.md |
|
- HTTPPROXY=on |
|
- HTTPPROXY_LOG=off |
|
- HTTPPROXY_STEALTH=on |
|
|
|
# https://github.com/qdm12/gluetun-wiki/blob/v3.40.0/setup/options/port-forwarding.md |
|
- VPN_PORT_FORWARDING=on |
|
# TODO: should we use this instead of the `update-forwarded-port.sh` |
|
# - VPN_PORT_FORWARDING_UP_COMMAND= |
|
|
|
# https://github.com/qdm12/gluetun-wiki/blob/v3.40.0/setup/options/updater.md |
|
- UPDATER_PERIOD=24h |
|
|
|
# https://github.com/qdm12/gluetun-wiki/blob/v3.40.0/setup/options/firewall.md |
|
- FIREWALL_OUTBOUND_SUBNETS=192.168.0.0/24,192.168.144.0/24 |
|
|
|
# https://github.com/qdm12/gluetun-wiki/blob/v3.40.0/setup/options/dns.md |
|
- DOT_PROVIDERS=quad9,cloudflare,google |
|
- BLOCK_SURVEILLANCE=on |
|
|
|
# https://github.com/qdm12/gluetun-wiki/blob/v3.40.0/setup/options/vpn.md |
|
- VPN_SERVICE_PROVIDER=protonvpn |
|
- VPN_TYPE=wireguard |
|
|
|
# https://github.com/qdm12/gluetun-wiki/blob/v3.40.0/setup/providers/protonvpn.md |
|
- SERVER_COUNTRIES=Brazil |
|
- PORT_FORWARD_ONLY=on |
|
ports: |
|
- 3128:8888/tcp # HTTP proxy |
|
- 18080:18080/tcp # qBittorrent |
|
deploy: |
|
resources: |
|
limits: |
|
cpus: "2" |
|
memory: 512M |
|
|
|
qbittorrent: |
|
# https://docs.linuxserver.io/images/docker-qbittorrent |
|
image: lscr.io/linuxserver/qbittorrent:5.1.2-r4-ls425 |
|
container_name: qbittorrent |
|
restart: unless-stopped |
|
volumes: |
|
- ./update-forwarded-port.sh:/custom-services.d/update-forwarded-port.sh:ro |
|
- .../config:/config |
|
- .../downloads:/downloads |
|
environment: |
|
- PUID=568 |
|
- PGID=568 |
|
- TZ=Etc/UTC |
|
- WEBUI_PORT=18080 |
|
- DOCKER_MODS=ghcr.io/vuetorrent/vuetorrent-lsio-mod:latest |
|
network_mode: service:gluetun |
|
depends_on: |
|
gluetun: |
|
condition: service_healthy |
|
deploy: |
|
resources: |
|
limits: |
|
cpus: "4" |
|
memory: 2048M |