Tor in a container, with configuration through environment variables.
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).
docker-compose with static file hostingExample 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'
Content type
Image
Digest
Size
63.4 MB
Last updated
almost 7 years ago
docker pull shiftinv/tor