Skip to content

Instantly share code, notes, and snippets.

@drichline
Last active October 17, 2024 17:10
Show Gist options
  • Save drichline/ee3c650731cb5bfa9a34136900024a7f to your computer and use it in GitHub Desktop.
Save drichline/ee3c650731cb5bfa9a34136900024a7f to your computer and use it in GitHub Desktop.
version: "2"
services:
tor:
image: goldy/tor-hidden-service
container_name: tor
restart: always
links:
- caddy
environment:
# hello and again will share the same onion v3 address
SERVICE1_TOR_SERVICE_HOSTS: 80:host.containers.internal:8085
# Optional as tor version 2 is not supported anymore
SERVICE1_TOR_SERVICE_VERSION: '3'
# tor v3 address private key base 64 encoded
SERVICE1_TOR_SERVICE_KEY: |
[REDACTED]
TOR_EXTRA_OPTIONS: |
HiddenServiceNonAnonymousMode 1
HiddenServiceSingleHopMode 1
caddy:
image: caddy:latest
ports:
- 8085:80
restart: always
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- /mnt/mirror:/var/www/html
- data:/data
- config:/config
volumes:
data:
config:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment