Archived
1
0
Fork 0
This repository has been archived on 2024-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
dockerfiles/torrelay
2021-03-27 18:36:12 +01:00
..
assets init 2017-12-09 16:46:17 +01:00
Dockerfile Changing Maildomain 2021-03-27 18:36:12 +01:00
README.md init 2017-12-09 16:46:17 +01:00

torrelay docker image

Builds an image to run tor as a relay.

HINT: This is not an official image. Builds might not happen regularly.

A simple config to run as bridge or middle relay is included. This config takes environmet parameters:

ENV Default Description
TOR_NICK Landesverrat the Nickname (String)
TOR_CONTACT Not Provided ContactInfo (String)
TOR_BRIDGE 0 run as a bridge (0,1)
TOR_OPTION{1-9} NIL arbitrary option to be added at the end of config (String)

It is based on Alpine Linux http://alpinelinux.org/.

Usage

For example this way:

$ docker run -d \
         -e TOR_OPTION1="RelayBandwidthRate 2MBytes" \
         -e TOR_OPTION2="RelayBandwidthBurst 5MBytes" \
         -e TOR_OPTION3="AccountingMax 30GB" \
         -e TOR_OPTION4="AccountingStart day 00:00" \
         -p 9001:9001 \
         -p 9030:9030 \
         --restart=always \
         -v /etc/localtime:/etc/localtime:ro \
         -v torrelay:/var/lib/tor \
         elfrinjo/torrelay