2019-10-20 17:39:29 +02:00
2019-10-20 17:37:40 +02:00
2019-10-20 17:37:40 +02:00
2019-10-19 19:55:42 +02:00
2019-10-20 17:39:29 +02:00
2019-10-20 17:37:40 +02:00
2019-10-20 17:37:40 +02:00
2019-10-20 17:37:40 +02:00

tor-relay-docker

Lightweight TOR relay image, based on Alpine Linux. Configurations can be passed as environment variables.

Usage

Bridge mode

docker run \
  -d \
  --name tor-relay \
  -e RELAY_TYPE=bridge \
  -e TOR_ORPort=9001 \
  -e TZ=Europe/London \
  -p 9001:9001 \
  --restart always \
  ilshidur/tor-relay

Relay mode

docker run \
  -d \
  --name tor-relay \
  -e RELAY_TYPE=relay \
  -e TOR_ORPort=9001 \
  -e TZ=Europe/London \
  -p 9001:9001 \
  --restart always \
  ilshidur/tor-relay

Exit node mode

docker run \
  -d \
  --name tor-relay \
  -e RELAY_TYPE=exit \
  -e TOR_ORPort=9001 \
  -e TZ=Europe/London \
  -p 9001:9001 \
  --restart always \
  ilshidur/tor-relay

Configuration

The configuration is stored in a /etc/tor/torrc file. Everyline can be changed using environment variables as described below :

TOR_<configuration>=<value> will uncomment the first line starting with <configuration> and set its value to <value>.

Example : setting TOR_ORPort to 9002 will change the line #ORPort 9001 to ORPort 9002.

License

MIT

Description
No description provided
Readme MIT 87 KiB
Languages
Dockerfile 87.4%
Shell 12.6%