forked from lightningnetwork/lnd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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.
btcd:
image: btcd
container_name: btcd
build:
context: btcd/
dockerfile: Dockerfile
volumes:
- shared:/rpc
- bitcoin:/data
environment:
- RPCUSER
- RPCPASS
- NETWORK
- BTCD_DEBUG
- MINING_ADDRESS
entrypoint: ["./start-btcd.sh"]
lnd:
image: lnd
container_name: lnd
build:
context: ../
dockerfile: dev.Dockerfile
environment:
- RPCUSER
- RPCPASS
- NETWORK
- CHAIN
- LND_DEBUG
- BACKEND=btcd
volumes:
- shared:/rpc
- lnd:/root/.lnd
entrypoint: ["./start-lnd.sh"]
links:
- "btcd:blockchain"
volumes:
# shared volume is need to store the btcd rpc certificates and use it within
# btcctl and lnd containers.
shared:
driver: local
# bitcoin volume is needed for maintaining blockchain persistence
# during btcd container recreation.
bitcoin:
driver: local
# lnd volume is used for persisting lnd application data and chain state
# during container lifecycle.
lnd:
driver: local