From 532eaacbc9579e35efc0c80fd09490c7149c58ac Mon Sep 17 00:00:00 2001 From: AntiTree Date: Fri, 24 Jun 2016 21:26:58 -0400 Subject: [PATCH] Modifying docker-compose to have a static set of DA's and then scaling up after --- docker-compose.yml | 43 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4b4deb2..7f6eff1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,34 @@ version: '2' 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 #restart: always expose: @@ -24,7 +52,9 @@ services: volumes: - ./tor:/tor depends_on: - - da + - da1 + - da2 + - da3 exit: image: antitree/private-tor expose: @@ -35,7 +65,9 @@ services: volumes: - ./tor:/tor depends_on: - - da + - da1 + - da2 + - da3 client: image: antitree/private-tor ports: @@ -45,4 +77,7 @@ services: environment: ROLE: CLIENT depends_on: - - da + - da1 + - da2 + - da3 +