fix: vanguards cant see the consensus list

This commit is contained in:
wander 2026-02-06 21:26:00 -05:00
parent 6e17d8bec4
commit 88d63072ce
2 changed files with 13 additions and 1 deletions

View file

@ -124,6 +124,7 @@ fi
mkdir -p "$DATA_DIR/hidden_service/" mkdir -p "$DATA_DIR/hidden_service/"
chown -R tor:root "$DATA_DIR" chown -R tor:root "$DATA_DIR"
chmod 700 "$DATA_DIR" chmod 700 "$DATA_DIR"
chmod 700 "$DATA_DIR/hidden_service/"
echo "Configuration successful. Starting Tor..." echo "Configuration successful. Starting Tor..."
exec tor -f "$TOR_CONFIG" exec tor -f "$TOR_CONFIG"

View file

@ -9,12 +9,21 @@ services:
restart: unless-stopped restart: unless-stopped
environment: environment:
# Format: ExternalPort:ContainerName:InternalPort # 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 - TOR_CONTROL_PASSWORD=secure_password
ports: ports:
- "9051:9051" # Expose control port - "9051:9051" # Expose control port
volumes: volumes:
- tor-data:/var/lib/tor/ - 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 Service - Runs Vanguards only (Sidecar)
vanguards: vanguards:
@ -28,6 +37,8 @@ services:
- HIDDEN_SERVICE_HOSTS="" - HIDDEN_SERVICE_HOSTS=""
depends_on: depends_on:
- tor - tor
volumes:
- tor-data:/var/lib/tor/
volumes: volumes:
tor-data: tor-data: