2016-07-17 03:55:16 +03:00
|
|
|
version: '2'
|
|
|
|
services:
|
2017-01-12 03:12:32 +03:00
|
|
|
|
2017-01-13 23:23:30 +03:00
|
|
|
# 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.
|
2017-01-12 03:12:32 +03:00
|
|
|
btc:
|
|
|
|
image: btcd
|
|
|
|
build:
|
|
|
|
context: btcd/
|
|
|
|
volumes:
|
|
|
|
- shared:/rpc
|
2017-01-13 23:24:07 +03:00
|
|
|
- blockchain:/data
|
2017-01-12 03:12:32 +03:00
|
|
|
environment:
|
2017-01-13 23:23:30 +03:00
|
|
|
- RPCUSER
|
|
|
|
- RPCPASS
|
2017-01-13 23:25:51 +03:00
|
|
|
- BITCOIN_NETWORK
|
2017-01-12 03:12:32 +03:00
|
|
|
|
2016-07-17 03:55:16 +03:00
|
|
|
btcd:
|
2017-01-12 03:12:32 +03:00
|
|
|
extends: btc
|
|
|
|
container_name: btcd
|
2016-08-30 01:17:48 +03:00
|
|
|
environment:
|
2017-01-13 23:23:30 +03:00
|
|
|
- DEBUG
|
2017-01-12 03:12:32 +03:00
|
|
|
- MINING_ADDRESS
|
|
|
|
entrypoint: ["./start-btcd.sh"]
|
|
|
|
|
|
|
|
btcctl:
|
|
|
|
extends: btc
|
|
|
|
container_name: btcctl
|
|
|
|
links:
|
|
|
|
- "btcd:rpcserver"
|
|
|
|
entrypoint: ["./start-btcctl.sh"]
|
|
|
|
|
2016-07-17 03:55:16 +03:00
|
|
|
lnd:
|
2017-01-12 03:12:32 +03:00
|
|
|
image: lnd
|
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: docker/lnd/Dockerfile
|
2016-08-30 01:17:48 +03:00
|
|
|
environment:
|
2017-01-13 23:23:30 +03:00
|
|
|
- RPCUSER
|
|
|
|
- RPCPASS
|
2017-01-13 23:25:51 +03:00
|
|
|
- BITCOIN_NETWORK
|
2017-01-13 23:23:30 +03:00
|
|
|
- DEBUG
|
2016-07-17 03:55:16 +03:00
|
|
|
volumes:
|
2017-01-12 03:12:32 +03:00
|
|
|
- shared:/rpc
|
|
|
|
entrypoint: ["./start-lnd.sh"]
|
|
|
|
|
|
|
|
alice:
|
|
|
|
extends: lnd
|
|
|
|
container_name: alice
|
|
|
|
links:
|
2017-01-13 23:23:30 +03:00
|
|
|
- "btcd:btcd"
|
2017-01-12 03:12:32 +03:00
|
|
|
|
|
|
|
bob:
|
|
|
|
extends: lnd
|
|
|
|
container_name: bob
|
|
|
|
links:
|
2017-01-13 23:23:30 +03:00
|
|
|
- "btcd:btcd"
|
2017-01-12 03:12:32 +03:00
|
|
|
|
2016-07-17 03:55:16 +03:00
|
|
|
volumes:
|
2017-01-13 23:23:30 +03:00
|
|
|
# shared volume is need to store the btcd rpc certificates and us it within
|
|
|
|
# btcctl and lnd containers.
|
2017-01-12 03:12:32 +03:00
|
|
|
shared:
|
|
|
|
driver: local
|
2017-01-13 23:24:07 +03:00
|
|
|
|
|
|
|
# blockhain volume is needed for maintaining blockchain persistance
|
|
|
|
# during btcd container recreation.
|
|
|
|
blockchain:
|
|
|
|
driver: local
|