Modifying docker-compose to have a static set of DA's and then scaling up after

This commit is contained in:
AntiTree 2016-06-24 21:26:58 -04:00
parent a8357e949b
commit 532eaacbc9

View File

@ -1,6 +1,34 @@
version: '2' version: '2'
services: services:
da: da1:
image: antitree/private-tor
#restart: always
expose:
- "7000"
- "9030"
- "54444"
environment:
## set your Nickname here (only use letters and numbers)
#TOR_NICKNAME: DA1
ROLE: DA
volumes:
## Needed to keep track of other nodes
- ./tor:/tor
da2:
image: antitree/private-tor
#restart: always
expose:
- "7000"
- "9030"
- "54444"
environment:
## set your Nickname here (only use letters and numbers)
#TOR_NICKNAME: DA1
ROLE: DA
volumes:
## Needed to keep track of other nodes
- ./tor:/tor
da3:
image: antitree/private-tor image: antitree/private-tor
#restart: always #restart: always
expose: expose:
@ -24,7 +52,9 @@ services:
volumes: volumes:
- ./tor:/tor - ./tor:/tor
depends_on: depends_on:
- da - da1
- da2
- da3
exit: exit:
image: antitree/private-tor image: antitree/private-tor
expose: expose:
@ -35,7 +65,9 @@ services:
volumes: volumes:
- ./tor:/tor - ./tor:/tor
depends_on: depends_on:
- da - da1
- da2
- da3
client: client:
image: antitree/private-tor image: antitree/private-tor
ports: ports:
@ -45,4 +77,7 @@ services:
environment: environment:
ROLE: CLIENT ROLE: CLIENT
depends_on: depends_on:
- da - da1
- da2
- da3