forked from btcpayserver/btcpayserver-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opt-add-tor-relay.yml
32 lines (31 loc) · 1013 Bytes
/
opt-add-tor-relay.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "3"
services:
tor-relay-gen:
restart: unless-stopped
image: btcpayserver/docker-gen:0.7.8
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.7.10
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"
volumes:
tor_relay_datadir:
tor_relay_torrcdir: