Sign inSign up

siverten/tor

By siverten

•Updated over 1 year ago

Docker image for running the good ol' Tor Onion Router! Works with both arm and x86.

Image
1

1.0K

siverten/tor repository overview

⁠Disclaimer

This image is automatically updated with a script.

So shoot me an email @ [email protected]⁠ if it starts crashing.

⁠Example docker-compose.yml

version: '3.9'
services:
 tor:
  image: siverten/tor:arm
  container_name: tor
  hostname: tor
  ports:
  - 9050:9050
  - 9040:9040
  - 127.0.0.1:9051:9051
  volumes:
  - ./torrc:/etc/tor/torrc:ro
  - ./tor/keys:/opt/keys:rw
  - ./tor/var:/var/lib/tor:rw

⁠Example torrc with hidden services

SocksPort 0.0.0.0:9050
HTTPProxy 0.0.0.0:9040
ControlListenAddress 0.0.0.0:9051

User tor

HardwareAccel 1
Nickname someoneforgottochangetheexamplename!
DataDirectory /var/lib/tor

HiddenServiceDir /opt/keys/me
HiddenServicePort 22 127.0.0.1:22
#HiddenServicePort 80 127.0.0.1:80
HiddenServiceVersion 3

HiddenServiceDir /opt/keys/somewebapp
HiddenServicePort 80 127.0.0.1:80
HiddenServiceVersion 3

⁠Dockerfile

FROM alpine:latest
RUN apk update && apk upgrade
RUN apk add tor
CMD /usr/bin/tor

Tag summary

Content type

Image

Digest

sha256:2f7ed935f…

Size

12.1 MB

Last updated

over 1 year ago

docker pull siverten/tor