mirror of https://github.com/tiyn/wiki
parent
6126a61ced
commit
35ca4ae051
@ -0,0 +1,70 @@
|
||||
# haugene - transmission-openvpn
|
||||
|
||||
This is a docker container for a [transmission](../transmission.md) server that
|
||||
is connected to the internet via an openVPN tunnel.
|
||||
The official container and documentation was made by
|
||||
[haugene](https://github.com/haugene/docker-transmission-openvpn).
|
||||
|
||||
## Set-up
|
||||
|
||||
Create the file `rebuild.sh`.
|
||||
To see which providers are supported take a look at the
|
||||
[official documentation](https://haugene.github.io/docker-transmission-openvpn/supported-providers/).
|
||||
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
|
||||
|
||||
```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 \
|
||||
-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
|
||||
```
|
@ -0,0 +1,10 @@
|
||||
# Transmission
|
||||
|
||||
[Transmission](https://transmissionbt.com/) is a free and cross-platform
|
||||
BitTorrent client.
|
||||
|
||||
## Setup
|
||||
|
||||
The software can be setup via docker with the
|
||||
[haugene image](./docker-images/haugene_-_transmission-openvpn.md) that
|
||||
includes an openvpn tunnel.
|
Loading…
Reference in new issue