2016-07-17 03:55:16 +03:00
|
|
|
version: '2'
|
|
|
|
services:
|
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.
|
2019-02-25 16:45:47 +03:00
|
|
|
btcd:
|
2017-01-12 03:12:32 +03:00
|
|
|
image: btcd
|
2019-02-25 16:45:47 +03:00
|
|
|
container_name: btcd
|
2017-01-12 03:12:32 +03:00
|
|
|
build:
|
|
|
|
context: btcd/
|
|
|
|
volumes:
|
2019-01-23 16:34:09 +03:00
|
|
|
- shared:/rpc
|
|
|
|
- bitcoin:/data
|
2017-01-12 03:12:32 +03:00
|
|
|
environment:
|
2017-01-13 23:23:30 +03:00
|
|
|
- RPCUSER
|
|
|
|
- RPCPASS
|
2017-05-13 23:21:14 +03:00
|
|
|
- NETWORK
|
2019-02-25 16:45:47 +03:00
|
|
|
- DEBUG
|
|
|
|
- MINING_ADDRESS
|
|
|
|
entrypoint: ["./start-btcd.sh"]
|
2017-01-12 03:12:32 +03:00
|
|
|
|
2019-02-25 16:45:47 +03:00
|
|
|
lnd:
|
|
|
|
image: lnd
|
|
|
|
container_name: lnd
|
2017-05-13 23:22:40 +03:00
|
|
|
build:
|
2019-02-25 16:45:47 +03:00
|
|
|
context: ../
|
2020-11-21 12:49:44 +03:00
|
|
|
dockerfile: dev.Dockerfile
|
2017-05-13 23:22:40 +03:00
|
|
|
environment:
|
|
|
|
- RPCUSER
|
|
|
|
- RPCPASS
|
|
|
|
- NETWORK
|
2019-02-25 16:45:47 +03:00
|
|
|
- CHAIN
|
|
|
|
- DEBUG
|
|
|
|
volumes:
|
|
|
|
- shared:/rpc
|
|
|
|
- lnd:/root/.lnd
|
|
|
|
entrypoint: ["./start-lnd.sh"]
|
2017-01-12 03:12:32 +03:00
|
|
|
links:
|
2019-02-25 16:45:47 +03:00
|
|
|
- "btcd:blockchain"
|
2017-01-12 03:12:32 +03:00
|
|
|
|
2016-07-17 03:55:16 +03:00
|
|
|
volumes:
|
2018-01-07 13:12:57 +03:00
|
|
|
# shared volume is need to store the btcd rpc certificates and use it within
|
2017-01-13 23:23:30 +03:00
|
|
|
# btcctl and lnd containers.
|
2017-01-12 03:12:32 +03:00
|
|
|
shared:
|
|
|
|
driver: local
|
2017-01-13 23:24:07 +03:00
|
|
|
|
2018-02-07 06:11:11 +03:00
|
|
|
# bitcoin volume is needed for maintaining blockchain persistence
|
2017-01-13 23:24:07 +03:00
|
|
|
# during btcd container recreation.
|
2017-05-13 23:22:40 +03:00
|
|
|
bitcoin:
|
|
|
|
driver: local
|
|
|
|
|
2019-01-23 16:34:09 +03:00
|
|
|
# lnd volume is used for persisting lnd application data and chain state
|
|
|
|
# during container lifecycle.
|
|
|
|
lnd:
|
|
|
|
driver: local
|