feat: making the script insta fail if off
This commit is contained in:
parent
dd338125f0
commit
aa6ce865a7
3 changed files with 78 additions and 66 deletions
|
|
@ -1,21 +1,20 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
# Tor Service - Runs Tor only
|
||||
# Tor Service - Runs Tor with Strict Validation
|
||||
tor:
|
||||
build: .
|
||||
image: docker-tor-hidden-service:latest
|
||||
container_name: tor-service
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- ENABLE_VANGUARDS=false
|
||||
# Format: ExternalPort:ContainerName:InternalPort
|
||||
- HIDDEN_SERVICE_HOSTS=80:my-website:80
|
||||
- TOR_CONTROL_PASSWORD=secure_password
|
||||
# Expose control port on all interfaces for sidecar access
|
||||
- TOR_CONTROL_PORT=0.0.0.0:9051
|
||||
ports:
|
||||
- "9051:9051" # Expose control port (ensure firewall protects this!)
|
||||
- "9051:9051" # Expose control port
|
||||
volumes:
|
||||
- tor-data:/var/lib/tor/hidden_service/
|
||||
- tor-data:/var/lib/tor/
|
||||
|
||||
# Vanguards Service - Runs Vanguards only (Sidecar)
|
||||
vanguards:
|
||||
|
|
@ -23,13 +22,12 @@ services:
|
|||
image: docker-tor-hidden-service:latest
|
||||
container_name: vanguards-sidecar
|
||||
restart: unless-stopped
|
||||
command: vanguards --control_ip tor-service --control_port 9051 --control_pass secure_password
|
||||
environment:
|
||||
- ENABLE_TOR=false
|
||||
- TOR_CONTROL_PASSWORD=secure_password
|
||||
- TOR_CONTROL_PORT=tor:9051
|
||||
# Placeholder to ensure no tor starts here
|
||||
- HIDDEN_SERVICE_HOSTS=""
|
||||
depends_on:
|
||||
- tor
|
||||
# network_mode: "service:tor" # Optional: if you want them to share network stack (localhost access)
|
||||
|
||||
volumes:
|
||||
tor-data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue