Sign inSign up

shiftinv/tor

By shiftinv

•Updated almost 7 years ago

Tor hidden service in a Docker container

Image
0

243

shiftinv/tor repository overview

⁠Tor hidden service with Docker

Tor in a container, with configuration through environment variables.

⁠Configuration

Set the SERVICES environment variable to configure the hidden services:

SERVICES="1337:server:80:test-config:3"

sets up a v3 service on port 1337, forwarding traffic to server:80 and using the config directory /web/test-config

Optional: Add v2/v3 private keys if you don't want a randomly generated key/address (see below).

⁠Example docker-compose with static file hosting

Example config with v3 ed25519 keys in ./tor/test-config1/ and a v2 private_key in ./tor/test-config2/:

version: '3'

services:
  tor:
    image: shiftinv/tor
    restart: always
    depends_on:
      - server
    volumes:
      - ./tor:/web
    environment:
      SERVICES: "1337:server:80:test-config1:3; 1338:server:80:test-config2:2"
  server:
    image: halverneus/static-file-server
    restart: always
    volumes:
      - ./webserver:/web:ro
    expose:
      - 80
    environment:
      PORT: '80'
      DEBUG: 'true'
      SHOW_LISTING: 'false'

Tag summary

Content type

Image

Digest

Size

63.4 MB

Last updated

almost 7 years ago

docker pull shiftinv/tor