Tor docker: parameterized hostname and added command for onion hostname output
This commit is contained in:
+3
-4
@@ -11,10 +11,9 @@ RUN apk add --no-cache curl tor && \
|
||||
HEALTHCHECK --interval=60s --timeout=15s --start-period=20s \
|
||||
CMD curl -s --socks5 127.0.0.1:9050 'https://check.torproject.org/' | grep -qm1 Congratulations
|
||||
|
||||
COPY tor.sh /usr/bin/
|
||||
|
||||
#VOLUME ["/var/lib/tor/svc"]
|
||||
COPY tor.sh /usr/local/bin/
|
||||
COPY svc-hostname /usr/local/bin/
|
||||
|
||||
#USER tor
|
||||
|
||||
CMD ["tor.sh"]
|
||||
CMD [ "tor.sh", "$SVC_HOST" ]
|
||||
|
||||
Reference in New Issue
Block a user