Skip to content

Instantly share code, notes, and snippets.

@jhs88
Created May 17, 2025 03:31
Show Gist options
  • Save jhs88/2f9cf3cbf7b1511d938e96b03938a875 to your computer and use it in GitHub Desktop.
Save jhs88/2f9cf3cbf7b1511d938e96b03938a875 to your computer and use it in GitHub Desktop.

Revisions

  1. jhs88 created this gist May 17, 2025.
    32 changes: 32 additions & 0 deletions compose.transmission.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    services:
    transmission-openvpn:
    image: haugene/transmission-openvpn:latest
    # privileged: true
    restart: unless-stopped
    ports: ['9091:9091', '8118:8118']
    cap_add: [NET_ADMIN]
    devices: [/dev/net/tun]
    secrets: [openvpn_creds]
    environment:
    - OPENVPN_PROVIDER=PIA
    - OPENVPN_CONFIG=bahamas,ca_toronto,ca_montreal,mexico
    - OPENVPN_USERNAME=**None**
    - OPENVPN_PASSWORD=**None**
    # Set to current network subnet
    - LOCAL_NETWORK=192.168.x.0/24
    - OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60
    - TRANSMISSION_SCRAPE_PAUSED_TORRENTS_ENABLED=false
    - TRANSMISSION_SPEED_LIMIT_UP_ENABLED=true
    # use when inside vm
    - CREATE_TUN_DEVICE=false
    volumes:
    - '/mnt/torrents:/data'
    - './config:/config'
    logging:
    driver: json-file
    options:
    max-size: 10m

    secrets:
    openvpn_creds:
    file: ./openvpn-credentials.txt