Browse Source
* Add tor relay fragment * remove extra , * use same tor container for relay * remove \ns * use own container for tor relay because of https://trac.torproject.org/projects/tor/ticket/8742 * be explicit with ports * fix container name * fix duplicate config * fix config clash * do not set daemon config item * add info about tor requirements and legal implicationsfeature/lndseedbackup
Andrew Camilleri
5 years ago
committed by
Nicolas Dorier
6 changed files with 59 additions and 1 deletions
@ -0,0 +1,12 @@ |
|||
ORPort 9001 |
|||
DirPort 9030 |
|||
ExitPolicy reject *:* |
|||
CookieAuthentication 1 |
|||
|
|||
Nickname {{ $.Env.TOR_RELAY_NICKNAME}} |
|||
ContactInfo {{ $.Env.TOR_RELAY_EMAIL}} |
|||
|
|||
|
|||
{{ if $.Env.ADDITIONAL_TORRC_CONFIG }} |
|||
{{ $.Env.ADDITIONAL_TORRC_CONFIG}} |
|||
{{ end }} |
@ -0,0 +1,33 @@ |
|||
version: "3" |
|||
services: |
|||
tor-relay-gen: |
|||
restart: unless-stopped |
|||
image: btcpayserver/docker-gen:0.7.6 |
|||
container_name: tor-relay-gen |
|||
volumes: |
|||
- "/var/run/docker.sock:/tmp/docker.sock:ro" |
|||
- "./torrc-relay.tmpl:/etc/docker-gen/templates/torrc.tmpl:ro" |
|||
- "tor_relay_torrcdir:/usr/local/etc/tor" |
|||
entrypoint: /usr/local/bin/docker-gen -notify-sighup tor-relay -watch -wait 5s:30s /etc/docker-gen/templates/torrc.tmpl /usr/local/etc/tor/torrc-2 |
|||
links: |
|||
- tor-relay |
|||
environment: |
|||
TOR_RELAY_NICKNAME: ${TOR_RELAY_NICKNAME} |
|||
TOR_RELAY_EMAIL: ${TOR_RELAY_EMAIL} |
|||
|
|||
tor-relay: |
|||
restart: unless-stopped |
|||
image: btcpayserver/tor:0.4.1.5 |
|||
container_name: tor-relay |
|||
environment: |
|||
TOR_PASSWORD: btcpayserver |
|||
TOR_ADDITIONAL_CONFIG: /usr/local/etc/tor/torrc-2 |
|||
volumes: |
|||
- "tor_relay_datadir:/home/tor/.tor" |
|||
- "tor_relay_torrcdir:/usr/local/etc/tor" |
|||
ports: |
|||
- "9001:9001" |
|||
- "9030:9030" |
|||
volumes: |
|||
tor_relay_datadir: |
|||
tor_relay_torrcdir: |
Loading…
Reference in new issue