A Docker Tor proxy container to add to Docker Compose projects
 
 
Go to file
B.J. Dweck ff20e94032 Added existing project files 2022-01-05 09:32:46 +02:00
Dockerfile Added existing project files 2022-01-05 09:32:46 +02:00
README.md Added existing project files 2022-01-05 09:32:46 +02:00
svc-hostname Added existing project files 2022-01-05 09:32:46 +02:00
tor.sh Added existing project files 2022-01-05 09:32:46 +02:00

README.md

Tor Proxy

This is a Tor Proxy Docker container for "torifying" other Docker-based services in a Docker Compose project. It creates a Tor Hidden Service with an onion hostname that persists as long as it's underlying storage volume. The Tor Hidden Service listens on the specified port and proxies traffice to the specified target host:port.

Example Usage

docker-compose.yml:

...

  mysvc_tor_proxy:
    build:
      context: ./tor
      args:
        - SVC_LISTEN_PORT=80
        - SVC_TARGET_HOST=mysvc
        - SVC_TARGET_PORT=8080
    volumes:
      - mysvc_config:/var/lib/tor
    depends_on:
      - mysvc
    restart: unless-stopped

...