From 112a03a64166470e4821e3fd5b4403ad8570c897 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Wed, 23 Mar 2016 21:27:37 +0100 Subject: [PATCH] enabled tor --- Dockerfile | 6 ++++++ docker-compose.yml | 4 +++- launch | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 60f0542..49342f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,12 @@ ENV DATA /data RUN adduser -D -u $UID -h $HOME -s /bin/true $USER +# Optionall you may want to enable Tor in order to anonymize the traffic +RUN apk add tor@testing +RUN echo -e "ControlPort 9051" > /etc/tor/torrc +# RUN echo -e "ControlPort 9051\nCookieAuthentication 1" > /etc/tor/torrc +# RUN adduser $USER tor + USER $USER VOLUME [ "$DATA" ] WORKDIR $HOME diff --git a/docker-compose.yml b/docker-compose.yml index 173565c..c3c4f62 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,9 @@ services: build: ./ read_only: false networks: - net: + - net + ports: + - 15441:15441 volumes: - data:/data diff --git a/launch b/launch index f85f350..05f9e2d 100755 --- a/launch +++ b/launch @@ -4,5 +4,8 @@ # Switch to the directory of this script cd "$(dirname "$(realpath "$0")")" +# Optionall you may want to enable Tor in order to anonymize the traffic +/usr/bin/tor & + chown -Rh $USER:$USER $DATA su -s /bin/sh $USER -c "python zeronet.py --ui_ip 0.0.0.0"