Tor docker: parameterized hostname and added command for onion hostname output

This commit is contained in:
bj
2020-10-22 19:16:10 +02:00
parent ab0521b401
commit cbe45426ce
3 changed files with 21 additions and 7 deletions
+3 -4
View File
@@ -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" ]