-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose.yml
99 lines (97 loc) · 1.61 KB
/
docker-compose.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3'
services:
da1:
image: antitree/private-tor
#expose:
# - "7000"
# - "9030"
environment:
ROLE: DA
volumes:
## Needed to keep track of other nodes
- ./tor:/tor
da2:
image: antitree/private-tor
#expose:
# - "7000"
# - "9030"
environment:
ROLE: DA
volumes:
## Needed to keep track of other nodes
- ./tor:/tor
da3:
image: antitree/private-tor
#expose:
# - "7000"
# - "9030"
environment:
ROLE: DA
volumes:
## Needed to keep track of other nodes
- ./tor:/tor
relay:
image: antitree/private-tor
#expose:
# - "7000"
# - "9030"
environment:
ROLE: RELAY
volumes:
- ./tor:/tor
depends_on:
# Make sure the DA's are already up
- da1
- da2
- da3
exit:
image: antitree/private-tor
#expose:
# - "7000"
# - "9030"
environment:
ROLE: EXIT
volumes:
- ./tor:/tor
depends_on:
# Make sure the DA's are already up
- da1
- da2
- da3
client:
image: antitree/private-tor
ports:
# Setups a listener on host machine
- "9050:9050"
- "9051:9051"
volumes:
- ./tor:/tor
environment:
ROLE: CLIENT
depends_on:
- da1
- da2
- da3
hs:
image: antitree/private-tor
#expose:
# - "80"
environment:
ROLE: HS
# This will create a hidden service that points to
# the service "web" which is runing nginx. You can
# change this to whatever ip or hostname you want
TOR_HS_PORT: "80"
TOR_HS_ADDR: "web"
volumes:
- ./tor:/tor
depends_on:
- da1
- da2
- da3
links:
- web
web:
image: nginx
#expose:
# - "80"