lnd.xprv/docker/docker-compose.yml
Andrey Samokhvalov 816b9ada44 docker: add "CHAIN" parameter
After addition of the Litecoin client image (ltcd), we should add
additional parameter to notify the start script which network we should
use.
2017-07-05 10:41:31 -07:00

107 lines
2.4 KiB
YAML

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"]
alice:
extends: lnd
container_name: alice
links:
- "btcd:blockchain"
bob:
extends: lnd
container_name: bob
links:
- "btcd:blockchain"
volumes:
# shared volume is need to store the btcd rpc certificates and us it within
# btcctl and lnd containers.
shared:
driver: local
# bitcoin volume is needed for maintaining blockchain persistance
# during btcd container recreation.
bitcoin:
driver: local
# litecoin volume is needed for maintaining blockchain persistance
# during ltcd container recreation.
litecoin:
driver: local