lnd.xprv/docker/docker-compose.yml

107 lines
2.4 KiB
YAML
Raw Normal View History

version: '2'
services:
# btc is an image of bitcoin node which used as base image for btcd and
# btccli. The environment variables default values determined on stage of
# container start within starting script.
btc:
image: btcd
build:
context: btcd/
volumes:
- shared:/rpc
- bitcoin:/data
environment:
- RPCUSER
- RPCPASS
- NETWORK
btcd:
extends: btc
container_name: btcd
environment:
- DEBUG
- MINING_ADDRESS
entrypoint: ["./start-btcd.sh"]
btcctl:
extends: btc
container_name: btcctl
links:
- "btcd:rpcserver"
entrypoint: ["./start-btcctl.sh"]
# ltc is an image of litecoin node which used as base image for ltcd and
# ltcctl. The environment variables default values determined on stage of
# container start within starting script.
ltc:
image: ltcd
build:
context: ltcd/
volumes:
- shared:/rpc
- litecoin:/data
environment:
- RPCUSER
- RPCPASS
- NETWORK
ltcd:
extends: ltc
container_name: ltcd
environment:
- DEBUG
- MINING_ADDRESS
entrypoint: ["./start-ltcd.sh"]
ltcctl:
extends: ltc
container_name: ltcctl
links:
- "ltcd:rpcserver"
entrypoint: ["./start-ltcctl.sh"]
lnd:
image: lnd
build:
context: ../
dockerfile: docker/lnd/Dockerfile
environment:
- RPCUSER
- RPCPASS
- NETWORK
- CHAIN
- DEBUG
volumes:
- shared:/rpc
entrypoint: ["./start-lnd.sh"]
lnd_ltc:
extends: lnd
container_name: lnd_ltc
links:
- "ltcd:blockchain"
lnd_btc:
extends: lnd
container_name: lnd_btc
links:
- "btcd:blockchain"
volumes:
2018-01-07 13:12:57 +03:00
# shared volume is need to store the btcd rpc certificates and use it within
# btcctl and lnd containers.
shared:
driver: local
2017-01-13 23:24:07 +03:00
# bitcoin volume is needed for maintaining blockchain persistence
2017-01-13 23:24:07 +03:00
# during btcd container recreation.
bitcoin:
driver: local
# litecoin volume is needed for maintaining blockchain persistence
# during ltcd container recreation.
litecoin:
2017-01-13 23:24:07 +03:00
driver: local