2016-06-24 22:26:57 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
2016-06-25 01:26:58 +00:00
|
|
|
da1:
|
2016-07-10 00:22:45 +00:00
|
|
|
image: antitree/private-tor
|
2016-06-25 01:26:58 +00:00
|
|
|
expose:
|
|
|
|
- "7000"
|
|
|
|
- "9030"
|
|
|
|
environment:
|
|
|
|
ROLE: DA
|
|
|
|
volumes:
|
|
|
|
## Needed to keep track of other nodes
|
|
|
|
- ./tor:/tor
|
|
|
|
da2:
|
2016-07-10 00:22:45 +00:00
|
|
|
image: antitree/private-tor
|
2016-06-25 01:26:58 +00:00
|
|
|
expose:
|
|
|
|
- "7000"
|
|
|
|
- "9030"
|
|
|
|
environment:
|
|
|
|
ROLE: DA
|
|
|
|
volumes:
|
|
|
|
## Needed to keep track of other nodes
|
|
|
|
- ./tor:/tor
|
|
|
|
da3:
|
2016-07-10 00:22:45 +00:00
|
|
|
image: antitree/private-tor
|
2016-06-24 22:26:57 +00:00
|
|
|
expose:
|
|
|
|
- "7000"
|
|
|
|
- "9030"
|
|
|
|
environment:
|
|
|
|
ROLE: DA
|
|
|
|
volumes:
|
2016-06-24 22:50:38 +00:00
|
|
|
## Needed to keep track of other nodes
|
2016-06-24 22:26:57 +00:00
|
|
|
- ./tor:/tor
|
|
|
|
relay:
|
2016-07-10 00:22:45 +00:00
|
|
|
image: antitree/private-tor
|
2016-06-24 22:26:57 +00:00
|
|
|
expose:
|
|
|
|
- "7000"
|
|
|
|
- "9030"
|
|
|
|
environment:
|
|
|
|
ROLE: RELAY
|
|
|
|
volumes:
|
|
|
|
- ./tor:/tor
|
|
|
|
depends_on:
|
2016-06-25 20:26:03 +00:00
|
|
|
# Make sure the DA's are already up
|
2016-06-25 01:26:58 +00:00
|
|
|
- da1
|
|
|
|
- da2
|
|
|
|
- da3
|
2016-06-24 22:26:57 +00:00
|
|
|
exit:
|
2016-07-10 00:22:45 +00:00
|
|
|
image: antitree/private-tor
|
2016-06-24 22:26:57 +00:00
|
|
|
expose:
|
|
|
|
- "7000"
|
|
|
|
- "9030"
|
|
|
|
environment:
|
|
|
|
ROLE: EXIT
|
|
|
|
volumes:
|
|
|
|
- ./tor:/tor
|
|
|
|
depends_on:
|
2016-06-25 20:26:03 +00:00
|
|
|
# Make sure the DA's are already up
|
2016-06-25 01:26:58 +00:00
|
|
|
- da1
|
|
|
|
- da2
|
|
|
|
- da3
|
2016-06-24 22:26:57 +00:00
|
|
|
client:
|
2016-07-10 00:22:45 +00:00
|
|
|
image: antitree/private-tor
|
2016-06-24 22:26:57 +00:00
|
|
|
ports:
|
2016-06-25 20:26:03 +00:00
|
|
|
# Setups a listener on host machine
|
2016-06-24 22:26:57 +00:00
|
|
|
- "9050:9050"
|
2016-07-02 19:36:58 +00:00
|
|
|
- "9051:9051"
|
2016-06-24 22:26:57 +00:00
|
|
|
volumes:
|
|
|
|
- ./tor:/tor
|
|
|
|
environment:
|
|
|
|
ROLE: CLIENT
|
|
|
|
depends_on:
|
2016-06-25 01:26:58 +00:00
|
|
|
- da1
|
|
|
|
- da2
|
|
|
|
- da3
|
2016-07-29 00:34:52 +00:00
|
|
|
hs:
|
|
|
|
image: antitree/private-tor
|
|
|
|
expose:
|
|
|
|
- "80"
|
|
|
|
environment:
|
|
|
|
ROLE: HS
|
2016-07-29 01:33:01 +00:00
|
|
|
# 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
|
2016-07-29 00:34:52 +00:00
|
|
|
TOR_HS_PORT: "80"
|
2016-07-29 01:33:01 +00:00
|
|
|
TOR_HS_ADDR: "web"
|
2016-07-29 00:34:52 +00:00
|
|
|
volumes:
|
|
|
|
- ./tor:/tor
|
|
|
|
depends_on:
|
|
|
|
- da1
|
|
|
|
- da2
|
|
|
|
- da3
|
2016-07-29 01:33:01 +00:00
|
|
|
links:
|
|
|
|
- web
|
|
|
|
web:
|
|
|
|
image: nginx
|
|
|
|
expose:
|
|
|
|
- "80"
|
|
|
|
|
2016-06-25 01:26:58 +00:00
|
|
|
|