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
version: '2'
services:
# 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.
ltcd:
image: ltcd
container_name: ltcd
build:
context: ltcd/
volumes:
- shared:/rpc
- litecoin:/data
environment:
- RPCUSER
- RPCPASS
- NETWORK
- DEBUG
- MINING_ADDRESS
entrypoint:
lnd:
image: lnd
container_name: lnd_ltc
build:
context: ../
dockerfile: docker/lnd/Dockerfile
environment:
- RPCUSER
- RPCPASS
- NETWORK
- CHAIN
- DEBUG
volumes:
- shared:/rpc
- lnd_ltc:/root/.lnd
entrypoint:
links:
- "ltcd:blockchain"
volumes:
# shared volume is need to store the btcd rpc certificates and use it within
# ltcctl and lnd containers.
shared:
driver: local
# litecoin volume is needed for maintaining blockchain persistence
# during ltcd container recreation.
litecoin:
driver: local
# lnd volume is used for persisting lnd application data and chain state
# during container lifecycle.
lnd_ltc:
driver: local