mirror of
https://github.com/tiyn/wiki.git
synced 2025-04-19 06:07:44 +02:00
2.6 KiB
2.6 KiB
haugene - transmission-openvpn
This is a Docker container for a transmission server that is connected to the internet via an openVPN tunnel. The official container and documentation was made by haugene.
Set-up
Create the file rebuild.sh
.
To see which providers are supported take a look at the
official documentation.
Change the settings according to your needs and run ./rebuild.sh
afterwards.
Environment-variables
Set the following variables with the -e tag.
Name | Usage | Default |
---|---|---|
OPENVPN_PROVIDER |
Provider for OpenVPN | |
OPENVPN_USERNAME |
Username for OpenVPN | |
OPENVPN_PASSWORD |
Password for OpenVPN | |
LOCAL_NETWORK |
Subnet of the local network | |
CREATE_TUN_DEVICE |
Use a tunnel device | |
WEBPROXY_ENABLES |
Use a webproxy | |
Volumes
Set the following volumes with the -v tag.
Outside mount/volume name | Container mount | Description |
---|---|---|
transmission_config |
/config |
Configuration files |
transmission data |
/data |
Storage for data |
/etc/localtime |
/etc/localtime:ro |
Link to the systemtime |
Ports
Set the following ports with the -p tag.
Container Port | Recommended outside port | Protocol | Description |
---|---|---|---|
9091 |
9091 |
TCP | WebUI |
rebuild.sh
#!/bin/sh
docker stop transmission
docker rm transmission
docker pull haugene/transmission-openvpn
docker run --name transmission \
--restart unless-stopped \
--cap-add NET_ADMIN \
-v /etc/localtime:/etc/localtime:ro \
-v transmission_data:/data \
-v transmission_config:/config \
-e OPENVPN_PROVIDER=<vpn provider> \
-e OPENVPN_CONFIG=<vpn_-_country-udp> \
-e OPENVPN_USERNAME=<username> \
-e OPENVPN_PASSWORD=<password> \
-e LOCAL_NETWORK=192.168.178.0/24 \
-e CREATE_TUN_DEVICE=true \
-e WEBPROXY_ENABLES=false \
--log-driver json-file \
--log-opt max-size=50m \
-p 9091:9091 \
-d haugene/transmission-openvpn