Tor in a Docker container.
50K+
Docker container of the Tor network proxy daemon.
services:
tor:
image: dockurr/tor
container_name: tor
ports:
- 9050:9050
- 8118:8118
restart: always
docker run -it --rm --name tor -p 9050:9050 -p 8118:8118 docker.io/dockurr/tor
The SOCKSv5 proxy is available on port 9050, and the HTTPS proxy is available on port 8118.
Environment variables:
PASSWORD - Password for the Tor control port (default: "password")
CHECK - Enable external health checks (default: "false")
DEBUG - Enable debug output (default: "false")
Advanced configuration:
You can provide a custom Tor configuration file to the container via a torrc file in /etc/tor, with your own relay, exit node, bridge, or hidden service settings.
Mount the following directories in your compose file:
volumes:
- ./config:/etc/tor
- ./data:/var/lib/tor
and place the custom torrc file in your ./config directory, for example:
# Your relay configuration
Nickname MyTorRelay
ContactInfo [email protected]
ORPort 9001
DirPort 9030
ExitRelay 0
ExitPolicy reject *:*
The /var/lib/tor directory contains Tor state and identity data. Persisting it is optional for simple proxy usage, but strongly recommended for relays and bridges because it preserves the relay identity and fingerprint.
Content type
Image
Digest
sha256:dee1cc80a…
Size
42.4 MB
Last updated
5 days ago
docker pull dockurr/torPulls:
3,895
Jun 29 to Jul 5