squeaknode/docker/docker-compose.yml
Jonathan Zernik ecf3d8cecb
Use docker tor simple (#1847)
* Got docker-compose working with tor-simple tor proxy

* Got itest working with simple-tor docker image

* Delete old commented containers for tor
2021-12-13 11:36:25 -08:00

98 lines
2 KiB
YAML

version: '3'
services:
bitcoin-core:
image: ruimarinho/bitcoin-core:0.21.1
container_name: bitcoin-core
volumes:
- ~/.bitcoin:/home/bitcoin/.bitcoin
ports:
- 8332:8332
- 18332:18332
- 28334:28334
lnd_client:
image: lnd
container_name: lnd_client
build:
context: ../
dockerfile: docker/lnd/Dockerfile
environment:
- NETWORK=testnet
- RPCHOST=bitcoin-core
- BACKEND=bitcoind
- TARGETHOST=lnd_client
depends_on:
- "tor-node"
volumes:
- ~/.lnd:/root/.lnd
- tor-dir:/var/lib/tor
ports:
- 10009:10009
links:
- "bitcoin-core:bitcoin-core"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
entrypoint: ["./start-lnd.sh"]
lnd_server:
image: lnd
container_name: lnd_server
build:
context: ../
dockerfile: docker/lnd/Dockerfile
environment:
- NETWORK=testnet
- RPCHOST=bitcoin-core
- BACKEND=bitcoind
- TARGETHOST=lnd_server
depends_on:
- "tor-node"
volumes:
- lnd_server_dir:/root/.lnd
- tor-dir:/var/lib/tor
links:
- "bitcoin-core:bitcoin-core"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
entrypoint: ["./start-lnd.sh"]
tor-node:
image: osminogin/tor-simple
container_name: tor-node
restart: always
expose:
- "9051"
volumes:
- ../torrc:/etc/tor/torrc:ro
- tor-dir:/var/lib/tor
squeaknode:
image: squeaknode
container_name: squeaknode
build:
context: ../
dockerfile: Dockerfile
depends_on:
- "lnd_server"
volumes:
- lnd_server_dir:/root/.lnd
- squeaknode_dir:/root/.sqk
- ./config.ini:/config.ini
ports:
- 18557:18555
- 12995:12994
links:
- "bitcoin-core:bitcoin-core"
- "lnd_server:lnd"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
entrypoint: ["./start-squeaknode.sh"]
volumes:
lnd_server_dir:
driver: local
squeaknode_dir:
driver: local
tor-dir:
driver: local