mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-04-11 17:42:04 +00:00
44 lines
892 B
YAML
44 lines
892 B
YAML
# Secure vangard in the same container
|
|
|
|
version: "3.1"
|
|
|
|
services:
|
|
tor:
|
|
image: goldy/tor-hidden-service:$CUR_TAG
|
|
environment:
|
|
# Enable Vanguards like this
|
|
TOR_ENABLE_VANGUARDS: 'true'
|
|
|
|
# You can change any options here, excepted control_* ones
|
|
VANGUARDS_EXTRA_OPTIONS: |
|
|
[Global]
|
|
enable_cbtverify = True
|
|
loglevel = DEBUG
|
|
|
|
HELLO_TOR_SERVICE_HOSTS: '80:hello:80'
|
|
HELLO_TOR_SERVICE_VERSION: '3'
|
|
|
|
|
|
# Keep keys in volumes
|
|
volumes:
|
|
- tor-keys:/var/lib/tor/hidden_service/
|
|
|
|
# Set secret for key, use the same name as the service
|
|
secrets:
|
|
- source: hello
|
|
target: hello
|
|
mode: 0400
|
|
|
|
hello:
|
|
image: tutum/hello-world
|
|
hostname: hello
|
|
depends_on:
|
|
- tor
|
|
|
|
volumes:
|
|
tor-keys:
|
|
driver: local
|
|
|
|
secrets:
|
|
hello:
|
|
file: ./private_key_bar_v3
|