mirror of
https://github.com/oldnick85/tor_yggdrasil_docker.git
synced 2025-11-29 03:13:44 +01:00
18 lines
707 B
YAML
18 lines
707 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
tor_yggdrasil:
|
|
image: tor_yggdrasil:latest
|
|
container_name: tor_over_yggdrasil
|
|
cap_add:
|
|
- NET_ADMIN # Required for network tunnel management
|
|
security_opt:
|
|
- no-new-privileges:true # Security enhancement - prevent privilege escalation
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun # TUN device for Yggdrasil network interface
|
|
ports:
|
|
- "127.0.0.1:9050:9050/tcp" # SOCKS5 proxy port (Tor) for application-level traffic
|
|
- "10654:10654/tcp" # Yggdrasil peer connections
|
|
environment:
|
|
- YGGDRASIL_GENERATE_KEYS=true # Generate new Yggdrasil keys on startup
|
|
restart: unless-stopped # Auto-restart unless manually stopped |