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