Created
May 17, 2025 03:31
-
-
Save jhs88/2f9cf3cbf7b1511d938e96b03938a875 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment