enabled tor

master
Andy 8 years ago
parent 4c9c43ac44
commit 112a03a641
Signed by: arno
GPG Key ID: 368DDA2E9A471EAC

@ -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

@ -5,7 +5,9 @@ services:
build: ./
read_only: false
networks:
net:
- net
ports:
- 15441:15441
volumes:
- data:/data

@ -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"

Loading…
Cancel
Save