enabled tor
This commit is contained in:
parent
4c9c43ac44
commit
112a03a641
@ -19,6 +19,12 @@ ENV DATA /data
|
|||||||
|
|
||||||
RUN adduser -D -u $UID -h $HOME -s /bin/true $USER
|
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
|
USER $USER
|
||||||
VOLUME [ "$DATA" ]
|
VOLUME [ "$DATA" ]
|
||||||
WORKDIR $HOME
|
WORKDIR $HOME
|
||||||
|
@ -5,7 +5,9 @@ services:
|
|||||||
build: ./
|
build: ./
|
||||||
read_only: false
|
read_only: false
|
||||||
networks:
|
networks:
|
||||||
net:
|
- net
|
||||||
|
ports:
|
||||||
|
- 15441:15441
|
||||||
volumes:
|
volumes:
|
||||||
- data:/data
|
- data:/data
|
||||||
|
|
||||||
|
3
launch
3
launch
@ -4,5 +4,8 @@
|
|||||||
# Switch to the directory of this script
|
# Switch to the directory of this script
|
||||||
cd "$(dirname "$(realpath "$0")")"
|
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
|
chown -Rh $USER:$USER $DATA
|
||||||
su -s /bin/sh $USER -c "python zeronet.py --ui_ip 0.0.0.0"
|
su -s /bin/sh $USER -c "python zeronet.py --ui_ip 0.0.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user