mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
|
version: '3'
|
||
|
services:
|
||
|
# lightninglabs/bitcoin-core is the base image for bitcoind.
|
||
|
# The environment variables default values determined on stage of container
|
||
|
# start within starting script.
|
||
|
bitcoind:
|
||
|
image: bitcoind
|
||
|
container_name: bitcoind
|
||
|
build:
|
||
|
context: bitcoind/
|
||
|
volumes:
|
||
|
- bitcoin:/data
|
||
|
environment:
|
||
|
- RPCAUTH
|
||
|
- NETWORK
|
||
|
- BITCOIND_DEBUG
|
||
|
entrypoint: ["./start-bitcoind.sh"]
|
||
|
|
||
|
lnd:
|
||
|
image: lnd
|
||
|
container_name: lnd
|
||
|
build:
|
||
|
context: ../
|
||
|
dockerfile: dev.Dockerfile
|
||
|
environment:
|
||
|
- RPCUSER
|
||
|
- RPCPASS
|
||
|
- NETWORK
|
||
|
- CHAIN
|
||
|
- LND_DEBUG
|
||
|
- BACKEND=bitcoind
|
||
|
volumes:
|
||
|
- lnd:/root/.lnd
|
||
|
entrypoint: ["./start-lnd.sh"]
|
||
|
links:
|
||
|
- "bitcoind:blockchain"
|
||
|
|
||
|
volumes:
|
||
|
# bitcoin volume is needed for maintaining blockchain persistence
|
||
|
# during btcd container recreation.
|
||
|
bitcoin:
|
||
|
driver: local
|
||
|
|
||
|
# lnd volume is used for persisting lnd application data and chain state
|
||
|
# during container lifecycle.
|
||
|
lnd:
|
||
|
driver: local
|