Skip to content

Instantly share code, notes, and snippets.

@tiero
Last active November 9, 2021 18:27
Show Gist options
  • Save tiero/b09c1eb739b723e527fc28097cf6b99f to your computer and use it in GitHub Desktop.
Save tiero/b09c1eb739b723e527fc28097cf6b99f to your computer and use it in GitHub Desktop.
tdexd with tor
version: "3.7"
services:
# TDEX daemon connected to Blockstream.info explorer
tdexd:
container_name: "tdexd"
image: ghcr.io/tdex-network/tdexd:latest
restart: unless-stopped
environment:
- TDEX_LOG_LEVEL=5 # 5 for Debug. 4 for production
ports:
- "9945:9945"
- "9000:9000"
volumes:
- ./tdexd:/home/user/.tdex-daemon:rw
# Tor Onion Hidden service
tor:
container_name: "tor"
image: goldy/tor-hidden-service:latest
restart: unless-stopped
depends_on:
- tdexd
environment:
# Set version 3 on TDEX
TDEX_TOR_SERVICE_HOSTS: "80:tdexd:9945"
TDEX_TOR_SERVICE_VERSION: "3"
TDEX_TOR_SERVICE_KEY: ${ONION_KEY}
# Keep keys in volumes
volumes:
- ./tor:/var/lib/tor/hidden_service/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment