Skip to content

๐Ÿ‹ Lightweight TOR relay image (13.37 MB), based on LinuxServer.io Alpine Linux.

License

Notifications You must be signed in to change notification settings

synopsis8/tor-relay-docker

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‹ ilshidur/tor-relay

Lightweight TOR relay image (13.37 MB), based on LinuxServer.io Alpine Linux. Configurations can be passed as environment variables.

dockeri.co

Usage

Bridge mode

docker run \
  -d \
  --name tor-relay \
  -e RELAY_TYPE=bridge \
  -e TOR_ORPort=9001 \
  -e TOR_DirPort=9030 \
  -e TOR_Nickname=ididnteditheconfig \
  -e TOR_RelayBandwidthRate="100 KBytes" \
  -e TOR_RelayBandwidthBurst="200 KBytes" \
  -e TZ=Europe/London \
  -e PUID=$(id -u) \
  -e PGID=$(id -g) \
  -v $(pwd)/tor/data:/data:Z \
  -p 9001:9001 \
  -p 9030:9030 \
  --restart always \
  ilshidur/tor-relay

Relay mode

docker run \
  -d \
  --name tor-relay \
  -e RELAY_TYPE=relay \
  -e TOR_ORPort=9001 \
  -e TOR_DirPort=9030 \
  -e TOR_Nickname=ididnteditheconfig \
  -e TOR_RelayBandwidthRate="100 KBytes" \
  -e TOR_RelayBandwidthBurst="200 KBytes" \
  -e TZ=Europe/London \
  -e PUID=$(id -u) \
  -e PGID=$(id -g) \
  -v $(pwd)/tor/data:/data:Z \
  -p 9001:9001 \
  -p 9030:9030 \
  --restart always \
  ilshidur/tor-relay

Exit node mode

It is highly recommended against setting up this type of configuration in a home network.

Tips for Running an Exit Node.

docker run \
  -d \
  --name tor-relay \
  -e RELAY_TYPE=exit \
  -e TOR_ORPort=9001 \
  -e TOR_DirPort=9030 \
  -e TOR_Nickname=ididnteditheconfig \
  -e TOR_RelayBandwidthRate="100 KBytes" \
  -e TOR_RelayBandwidthBurst="200 KBytes" \
  -e TZ=Europe/London \
  -e PUID=$(id -u) \
  -e PGID=$(id -g) \
  -v $(pwd)/tor/data:/data:Z \
  -p 9001:9001 \
  -p 9030:9030 \
  --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


Don't forget to ๐ŸŒŸ Star ๐ŸŒŸ the repo if you like this Docker image !
Your feedback is appreciated

About

๐Ÿ‹ Lightweight TOR relay image (13.37 MB), based on LinuxServer.io Alpine Linux.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 85.4%
  • Shell 14.6%