docker-compose-bitcoind.yml
1 version: '3' 2 services: 3 # lightninglabs/bitcoin-core is the base image for bitcoind. 4 # The environment variables default values determined on stage of container 5 # start within starting script. 6 bitcoind: 7 image: bitcoind 8 container_name: bitcoind 9 build: 10 context: bitcoind/ 11 volumes: 12 - bitcoin:/data 13 environment: 14 - RPCAUTH 15 - NETWORK 16 - BITCOIND_DEBUG 17 entrypoint: ["./start-bitcoind.sh"] 18 19 lnd: 20 image: lnd 21 container_name: lnd 22 build: 23 context: ../ 24 dockerfile: dev.Dockerfile 25 environment: 26 - RPCUSER 27 - RPCPASS 28 - NETWORK 29 - CHAIN 30 - LND_DEBUG 31 - BACKEND=bitcoind 32 volumes: 33 - lnd:/root/.lnd 34 entrypoint: ["./start-lnd.sh"] 35 links: 36 - "bitcoind:blockchain" 37 38 volumes: 39 # bitcoin volume is needed for maintaining blockchain persistence 40 # during btcd container recreation. 41 bitcoin: 42 driver: local 43 44 # lnd volume is used for persisting lnd application data and chain state 45 # during container lifecycle. 46 lnd: 47 driver: local