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/"
|
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"
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue