stable 1.0.0
This commit is contained in:
parent
88d63072ce
commit
e075e900cf
3 changed files with 100 additions and 184 deletions
|
|
@ -1,5 +1,3 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
# Tor Service - Runs Tor with Strict Validation
|
||||
tor:
|
||||
|
|
@ -9,32 +7,30 @@ services:
|
|||
restart: unless-stopped
|
||||
environment:
|
||||
# Format: ExternalPort:ContainerName:InternalPort
|
||||
# Pointing to the new 'web' service below
|
||||
- HIDDEN_SERVICE_HOSTS=80:web:80
|
||||
- TOR_CONTROL_PASSWORD=secure_password
|
||||
ports:
|
||||
- "9051:9051" # Expose control port
|
||||
- "9051:9051"
|
||||
- "9050:9050"
|
||||
volumes:
|
||||
- tor-data:/var/lib/tor/
|
||||
depends_on:
|
||||
- web
|
||||
|
||||
# Demo Web Service (So Tor has something to host)
|
||||
# Demo Web Service
|
||||
web:
|
||||
image: nginx:alpine
|
||||
container_name: my-website
|
||||
restart: unless-stopped
|
||||
|
||||
# Vanguards Service - Runs Vanguards only (Sidecar)
|
||||
# Vanguards Service - Sidecar
|
||||
vanguards:
|
||||
build: .
|
||||
image: docker-tor-hidden-service:latest
|
||||
container_name: vanguards-sidecar
|
||||
restart: unless-stopped
|
||||
# The 'vanguards' first word triggers the logic in your entrypoint.sh
|
||||
command: vanguards --control_ip tor-service --control_port 9051 --control_pass secure_password
|
||||
environment:
|
||||
# Placeholder to ensure no tor starts here
|
||||
- HIDDEN_SERVICE_HOSTS=""
|
||||
depends_on:
|
||||
- tor
|
||||
volumes:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue