Add docker-compose

This commit is contained in:
Maxim Portnyagin 2022-05-30 18:14:02 +04:00
parent bd6188eeb7
commit b9156bb913
No known key found for this signature in database
GPG key ID: 8F27C63672B69287
4 changed files with 53 additions and 43 deletions

10
Dockerfile.tor Normal file
View file

@ -0,0 +1,10 @@
FROM alpine:3.16.0
RUN apk --update --no-cache --no-progress add tor
CMD hashed_control_password=$(tor --quiet --hash-password $TOR_CONTROL_PASSWD) \
&& tor --SocksPort 0.0.0.0:$TOR_SOCKS_PORT \
--ControlPort 0.0.0.0:$TOR_CONTROL_PORT \
--HashedControlPassword $hashed_control_password
EXPOSE $TOR_SOCKS_PORT $TOR_CONTROL_PORT