A simple Docker image for running a Tor proxy for your containers. Supports obfs4 bridges too!
Mount your torrc to /torrc
inside the container. If needed, the obfs4proxy
executable is located in /usr/bin/obfs4proxy
by default.
Example torrc:
Log notice stdout
SOCKSPort 0.0.0.0:9050
BridgeRelay 0
UseBridges 1
ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy managed
Bridge obfs4 <your-bridge-here>
Bridge obfs4 <your-bridge-here>
Example docker-compose.yml:
version: "3.8"
services:
proxy:
image: nonker/docker-tor-bridges:latest
restart: always
volumes:
- /path/to/torrc:/torrc
- PeterDaveHello's tor-socks-proxy for giving me an idea where to get started.
- Docker for being awesome!