Add tor relay fragment (#190)
* 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 implications
This commit is contained in:
committed by
Nicolas Dorier
parent
08314c6086
commit
3ff6a88d8e
@@ -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:
|
||||
Reference in New Issue
Block a user