Skip to content

Commit

Permalink
Use environment variables to configure Tor node
Browse files Browse the repository at this point in the history
  • Loading branch information
SailReal committed Mar 5, 2022
1 parent b5daf74 commit d71d275
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ NGINX_IMAGE_VERSION=
ROOT_EMAIL=
SEARX_IMAGE_VERSION=
SITE=
TOR_RELAY_TYPE=
TOR_RELAY_NICKNAME=
TOR_CONTACT_GPG_FINGERPRINT=
TOR_CONTACT_NAME=
TOR_CONTACT_EMAIL=
TOR_RELAY_BANDWIDTH_RATE=
TOR_RELAY_BANDWIDTH_BURST=
TRAEFIK_CHECK_NEW_VERSION=
TRAEFIK_EXPOSED_BY_DEFAULT=
TRAEFIK_IMAGE_VERSION=
Expand Down
14 changes: 10 additions & 4 deletions tor-relay/docker-compose.tor-relay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ version: '2'
services:
tor-relay:
image: jess/tor-relay
# Choose one of the bellow to set the type of node
# command: -f /etc/tor/torrc.bridge
command: -f /etc/tor/torrc.middle
# command: -f /etc/tor/torrc.exit
environment:
# see https://github.com/jessfraz/dockerfiles/tree/master/tor-relay for further information about the values
- 'RELAY_TYPE=${TOR_RELAY_TYPE:-middle}'
- 'RELAY_NICKNAME=${TOR_RELAY_NICKNAME:-hacktheplanet}'
- 'CONTACT_GPG_FINGERPRINT=${TOR_CONTACT_GPG_FINGERPRINT:-none}'
- 'CONTACT_NAME=${TOR_CONTACT_NAME:-none}'
- 'CONTACT_EMAIL=${TOR_CONTACT_EMAIL:-none}'
- 'RELAY_BANDWIDTH_RATE=${TOR_RELAY_BANDWIDTH_RATE:-100 KBytes}'
- 'RELAY_BANDWIDTH_BURST=${TOR_RELAY_BANDWIDTH_BURST:-200 KBytes}'
- 'RELAY_PORT=9001'
volumes:
- '/etc/localtime:/etc/localtime'
networks:
Expand Down

0 comments on commit d71d275

Please # to comment.