Last active
August 6, 2022 00:38
-
-
Save anoduck/891fdeea0f77c3648f580d5a8ce4b3e0 to your computer and use it in GitHub Desktop.
docker-compose.yml for tor container and vanguards container networked
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.5' | |
services: | |
# ------------------------------------------------------- | |
# Apache | |
# ------------------------------------------------------- | |
apache: | |
image: apache:0.0.2 | |
container_name: webox | |
restart: always | |
volumes: | |
- type: bind | |
source: $PWD/httpd.conf | |
target: /etc/apache2/httpd.conf | |
- type: bind | |
source: $PWD/apache | |
target: /var/www/apache | |
ports: | |
- "8888:8888" | |
expose: | |
- "8888" | |
networks: | |
hidden-services: | |
ipv4_address: 172.16.222.20 | |
entrypoint: ["/usr/sbin/httpd", "-D", "FOREGROUND"] | |
# ----------------------------------------------------- | |
# Tor | |
# ----------------------------------------------------- | |
tor: | |
image: goldy/tor-hidden-service:latest | |
container_name: torwabox | |
restart: always | |
environment: | |
TOR_SOCKS_PORT: '9150' | |
TOR_CONTROL_PORT: '172.16.111.10:9151' | |
TOR_CONTROL_PASSWORD: 'REPLACE_WITH_YOUR_PASSWORD' | |
# TOR_ENABLE_VANGUARDS: 'true' | |
VANGUARDS_EXTRA_OPTIONS: | | |
[GLOBAL] | |
enable_cbtverify = True | |
loglevel = DEBUG | |
CHAN_TOR_SERVICE_HOSTS: '80:webox:8888' | |
CHAN_TOR_SERVICE_PORTS: '80:8888' | |
CHAN_TOR_SERVICE_VERSION: '3' | |
CHAN_TOR_SERVICE_KEY: | | |
'REPLACE_THIS_WITH_YOUR_OWN_SERVICE_KEY' | |
volumes: | |
- type: bind | |
source: ./tor | |
target: /var/lib/tor/hidden_service | |
- type: bind | |
source: ./tor-data | |
target: /run/tor/data | |
ports: | |
- 9150:9150 | |
- 9151:9151 | |
networks: | |
hidden-services: | |
ipv4_address: 172.16.222.10 | |
tor-control: | |
# Set an ip address for tor_control network to bind for the good network | |
ipv4_address: 172.16.111.10 | |
# ----------------------------------------------- | |
# Vanguards | |
# ----------------------------------------------- | |
vanguards: | |
image: goldy/tor-hidden-service:latest | |
container_name: vanbox | |
restart: always | |
depends_on: | |
- tor | |
environment: | |
TOR_CONTROL_PORT: '172.16.111.10:9151' | |
TOR_CONTROL_PASSWORD: 'REPLACE_WITH_YOUR_PASSWORD' | |
CHAN_TOR_SERVICE_NAME: 'webox' | |
CHAN_TOR_SERVICE_HOSTS: '80:webox:8888' | |
CHAN_TOR_SERVICE_PORTS: '80:8888' | |
CHAN_TOR_SERVICE_VERSION: '3' | |
CHAN_TOR_SERVICE_KEY: | | |
'REPLACE_THIS_WITH_YOUR_OWN_SERVICE_KEY' | |
networks: | |
tor-control: | |
ipv4_address: 172.16.111.20 | |
volumes: | |
- type: bind | |
source: ./tor-data | |
target: /run/tor/data | |
command: vanguards | |
# ---------------------------------------------- | |
# Networks | |
# ---------------------------------------------- | |
networks: | |
# This network is used for hidden services | |
hidden-services: | |
driver: bridge | |
ipam: | |
driver: default | |
config: | |
- subnet: 172.16.222.0/24 | |
# This network is used for vagrands to get access to tor | |
tor-control: | |
driver: bridge | |
ipam: | |
driver: default | |
config: | |
- subnet: 172.16.111.0/24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment