add documentation
This commit is contained in:
parent
40da72e855
commit
5ef7c8b852
6 changed files with 197 additions and 7 deletions
18
docker/tor/Dockerfile
Normal file
18
docker/tor/Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM alpine:edge
|
||||
|
||||
RUN apk add --no-cache curl tor
|
||||
|
||||
EXPOSE 9050
|
||||
|
||||
HEALTHCHECK --interval=60s --timeout=15s --start-period=20s \
|
||||
CMD curl -x socks5h://127.0.0.1:9050 'https://check.torproject.org/api/ip' | grep -qm1 -E '"IsTor"\s*:\s*true'
|
||||
|
||||
|
||||
# default owner is tor, but running as root to avoid docker volume mount issue
|
||||
RUN chown -R root:root /var/lib/tor
|
||||
|
||||
VOLUME ["/var/lib/tor/4get"]
|
||||
|
||||
COPY ./torrc /etc/tor/torrc
|
||||
|
||||
ENTRYPOINT ["/usr/bin/tor"]
|
1
docker/tor/torrc
Normal file
1
docker/tor/torrc
Normal file
|
@ -0,0 +1 @@
|
|||
SocksPort 0.0.0.0:9050
|
Loading…
Add table
Add a link
Reference in a new issue