-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
110 lines (105 loc) · 3.38 KB
/
docker-compose.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: '3.2'
services:
# --- Mongo database
mongo:
image: mongo:4.1
container_name: mongo
networks:
- default
ports:
- 27017
btcd:
image: btcd
build: services/btcd
container_name: btcd
volumes:
- ${MOUNT_PATH:-.}/services/btcd/files/btcd.conf:/root/.btcd/btcd.conf:rw
- ${MOUNT_PATH:-.}/data/btcd/data:/root/.btcd:rw
- ${MOUNT_PATH:-.}/rpc:/rpc:rw
networks:
- default
ports:
- 18334:18334
- 18555:18555
healthcheck:
test: ["CMD", "btcctl", "--rpccert=/rpc/rpc.cert", "--rpcserver=localhost:18334", "getinfo"]
interval: 30s
timeout: 3s
retries: 10
# docker-compose exec btcd btcctl --rpccert=/rpc/rpc.cert --rpcserver=localhost:18334 addnode bitcoind:18555 add
# docker-compose exec btcd btcctl --rpccert=/rpc/rpc.cert --rpcserver=localhost:18334 generate 400
command: btcd --datadir=/root/.btcd --configfile=/root/.btcd/btcd.conf
lnd:
image: lnd
build: services/lnd
container_name: lnd
networks:
- default
depends_on:
- btcd
volumes:
- ${MOUNT_PATH:-.}/services/lnd/files/lnd.conf:/root/.lnd/lnd.conf:rw
- ${MOUNT_PATH:-.}/data/lnd/data:/root/.lnd/data:rw
- ${MOUNT_PATH:-.}/rpc:/rpc:rw
ports:
- 8080:8080 # peer port
- 10009:10009 # rpc port
- 9735:9735 # protocol port
healthcheck:
test: ["CMD", "lncli", "--tlscertpath=/rpc/lnd.cert", "--no-macaroons", "getinfo"]
interval: 30s
timeout: 3s
retries: 10
# docker-compose exec lnd lncli --tlscertpath=/rpc/lnd.cert --macaroonpath=/rpc/admin.macaroon getinfo
restart: always
command: lnd --configfile=/root/.lnd/lnd.conf --datadir=/root/.lnd/data --rpclisten=0.0.0.0:10009
lnd-server:
image: lnd
build: services/lnd
container_name: lnd-server
networks:
- default
depends_on:
- btcd
volumes:
- ${MOUNT_PATH:-.}/services/lnd/files/lnd.conf:/root/.lnd/lnd.conf:rw
- ${MOUNT_PATH:-.}/data/lnd-server/data:/root/.lnd/data:rw
- ${MOUNT_PATH:-.}/rpc:/rpc:rw
ports:
- 38080:8080 # peer port
- 30009:10009 # rpc port
- 39735:9735 # protocol port
healthcheck:
test: ["CMD", "lncli", "--tlscertpath=/rpc/lnd.cert", "--no-macaroons", "getinfo"]
interval: 30s
timeout: 3s
retries: 10
# docker-compose exec lnd lncli --tlscertpath=/rpc/lnd.cert --macaroonpath=/rpc/admin.macaroon getinfo
restart: always
command: lnd --configfile=/root/.lnd/lnd.conf --datadir=/root/.lnd/data --rpclisten=0.0.0.0:10009
lnd-user:
image: lnd
build: services/lnd
container_name: lnd-user
networks:
- default
depends_on:
- btcd
volumes:
- ${MOUNT_PATH:-.}/services/lnd/files/lnd.conf:/root/.lnd/lnd.conf:rw
- ${MOUNT_PATH:-.}/data/lnd-user/data:/root/.lnd/data:rw
- ${MOUNT_PATH:-.}/rpc:/rpc:rw
ports:
- 28080:8080 # peer port
- 20009:10009 # rpc port
- 29735:9735 # protocol port
healthcheck:
test: ["CMD", "lncli", "--tlscertpath=/rpc/lnd.cert", "--no-macaroons", "getinfo"]
interval: 30s
timeout: 3s
retries: 10
# docker-compose exec lnd lncli --tlscertpath=/rpc/lnd.cert --macaroonpath=/rpc/admin.macaroon getinfo
restart: always
command: lnd --configfile=/root/.lnd/lnd.conf --datadir=/root/.lnd/data --rpclisten=0.0.0.0:10009
networks:
default: