squeaknode/docker/docker-compose.yml
Jonathan Zernik a43576a10e
Use bitcoincore for bitcoin node (#481)
* Got docker-compose working with bitcoin-core

* Got itest working

* Add bitcoin use_ssl config

* Rename service to bitcoin-core in docker-compose
2020-11-23 14:43:17 -05:00

85 lines
1.8 KiB
YAML

version: '3'
services:
# btcd:
# image: btcd
# container_name: btcd
# build:
# context: ../
# dockerfile: docker/btcd/Dockerfile
# volumes:
# - shared:/rpc
# - ~/.btcd/data:/data
# environment:
# - NETWORK
# entrypoint: ["./start-btcd.sh"]
bitcoin-core:
image: ruimarinho/bitcoin-core
container_name: bitcoin-core
volumes:
- ~/.bitcoin:/home/bitcoin/.bitcoin
command:
-printtoconsole
-testnet=1
-server=1
-rpcbind=0.0.0.0
-rpcallowip=0.0.0.0/0
-rpcuser=devuser
-rpcpassword=devpass
-zmqpubrawblock=tcp://0.0.0.0:28332
-zmqpubrawtx=tcp://0.0.0.0:28333
lnd:
image: lnd
container_name: lnd
build:
context: ../
dockerfile: docker/lnd/Dockerfile
environment:
- NETWORK
- RPCHOST=bitcoin-core
- BACKEND=bitcoind
volumes:
- shared:/rpc
- ~/.lnd:/root/.lnd
ports:
- 9735:9735
links:
- "bitcoin-core:bitcoin-core"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
entrypoint: ["./start-lnd.sh"]
squeaknode:
image: squeaknode
container_name: squeaknode
build:
context: ../
dockerfile: docker/squeaknode/Dockerfile
environment:
- WEBADMIN_USE_SSL
- WEBADMIN_LOGIN_DISABLED
- WEBADMIN_ALLOW_CORS
- NETWORK
- LOG_LEVEL
- SQUEAKNODE_SYNC_INTERVAL_S
volumes:
- shared:/rpc
- ~/.lnd:/root/.lnd
- ./config.ini:/app/config.ini
- ~/.sqk:/root/.sqk
ports:
- 8774:8774
- 12994:12994
links:
- "bitcoin-core:bitcoin-core"
- "lnd:lnd"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
entrypoint: ["./start-squeaknode.sh"]
volumes:
# shared volume is needed for sharing the btcd certificate
shared:
driver: local