fix: vanguards cant see the consensus list
This commit is contained in:
parent
6e17d8bec4
commit
88d63072ce
2 changed files with 13 additions and 1 deletions
|
|
@ -124,6 +124,7 @@ fi
|
|||
mkdir -p "$DATA_DIR/hidden_service/"
|
||||
chown -R tor:root "$DATA_DIR"
|
||||
chmod 700 "$DATA_DIR"
|
||||
chmod 700 "$DATA_DIR/hidden_service/"
|
||||
|
||||
echo "Configuration successful. Starting Tor..."
|
||||
exec tor -f "$TOR_CONFIG"
|
||||
|
|
|
|||
|
|
@ -9,12 +9,21 @@ services:
|
|||
restart: unless-stopped
|
||||
environment:
|
||||
# Format: ExternalPort:ContainerName:InternalPort
|
||||
- HIDDEN_SERVICE_HOSTS=80:my-website:80
|
||||
# Pointing to the new 'web' service below
|
||||
- HIDDEN_SERVICE_HOSTS=80:web:80
|
||||
- TOR_CONTROL_PASSWORD=secure_password
|
||||
ports:
|
||||
- "9051:9051" # Expose control port
|
||||
volumes:
|
||||
- tor-data:/var/lib/tor/
|
||||
depends_on:
|
||||
- web
|
||||
|
||||
# Demo Web Service (So Tor has something to host)
|
||||
web:
|
||||
image: nginx:alpine
|
||||
container_name: my-website
|
||||
restart: unless-stopped
|
||||
|
||||
# Vanguards Service - Runs Vanguards only (Sidecar)
|
||||
vanguards:
|
||||
|
|
@ -28,6 +37,8 @@ services:
|
|||
- HIDDEN_SERVICE_HOSTS=""
|
||||
depends_on:
|
||||
- tor
|
||||
volumes:
|
||||
- tor-data:/var/lib/tor/
|
||||
|
||||
volumes:
|
||||
tor-data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue