-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.elements.yml
100 lines (96 loc) · 2.82 KB
/
docker-compose.elements.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
version: "2.4"
volumes:
elements_data:
elements_shared:
dave_data:
emma_data:
services:
elements:
container_name: ${COMPOSE_PROJECT_NAME}_elements
image: bitcoinstack/elements:${ELEMENTS_VERSION}-alpine
restart: unless-stopped
command: [
"-chain=liquid-regtest",
"-validatepegin=1",
"-upnp=0",
"-server=1",
"-txindex=1",
"-onlynet=ipv4",
"-dnsseed=0",
"-dbcache=10",
"-initialfreecoins=0",
"-port=${ELEMENTS_PORT}",
"-rpcport=${ELEMENTS_RPC_PORT}",
"-rpcuser=${ELEMENTS_RPC_USER}",
"-rpcpassword=${ELEMENTS_RPC_PASSWORD}",
"-rpcallowip=0.0.0.0/0",
"-rpcbind=127.0.0.1",
"-rpcbind=${ELEMENTS_HOST}",
"-zmqpubrawtx=tcp://0.0.0.0:${ELEMENTS_ZMQ_TX_PORT}",
"-zmqpubhashblock=tcp://0.0.0.0:${ELEMENTS_ZMQ_BLOCK_PORT}",
"-mainchainrpchost=${BITCOIN_HOST}",
"-mainchainrpcport=${BITCOIN_RPC_PORT}",
"-mainchainrpcuser=${BITCOIN_RPC_USER}",
"-mainchainrpcpassword=${BITCOIN_RPC_PASSWORD}"
]
depends_on:
- bitcoin
networks:
bitcoinstacknet:
aliases:
- ${ELEMENTS_HOST}
ports:
- "127.0.0.1:${ELEMENTS_RPC_PORT}:${ELEMENTS_RPC_PORT}"
volumes:
- elements_data:/home/elements/.elements
- elements_shared:/opt/elements/bin
dave:
container_name: ${COMPOSE_PROJECT_NAME}_dave
image: bitcoinstack/clightning:${CLIGHTNING_VERSION}-alpine
restart: unless-stopped
command: [
"--alias=dave",
"--network=liquid-regtest",
"--addr=0.0.0.0:${DAVE_PORT}",
"--large-channels",
"--bitcoin-cli=/elements/elements-cli",
"--bitcoin-datadir=/elements",
"--bitcoin-rpcconnect=${ELEMENTS_HOST}",
"--bitcoin-rpcport=${ELEMENTS_RPC_PORT}",
"--bitcoin-rpcuser=${ELEMENTS_RPC_USER}",
"--bitcoin-rpcpassword=${ELEMENTS_RPC_PASSWORD}"
]
depends_on:
- elements
networks:
bitcoinstacknet:
aliases:
- ${DAVE_HOST}
volumes:
- dave_data:/home/clightning/.lightning
- elements_shared:/elements
emma:
container_name: ${COMPOSE_PROJECT_NAME}_emma
image: bitcoinstack/clightning:${CLIGHTNING_VERSION}-alpine
restart: unless-stopped
command: [
"--alias=emma",
"--network=liquid-regtest",
"--addr=0.0.0.0:${EMMA_PORT}",
"--large-channels",
"--bitcoin-cli=/elements/elements-cli",
"--bitcoin-datadir=/elements",
"--bitcoin-rpcconnect=${ELEMENTS_HOST}",
"--bitcoin-rpcport=${ELEMENTS_RPC_PORT}",
"--bitcoin-rpcuser=${ELEMENTS_RPC_USER}",
"--bitcoin-rpcpassword=${ELEMENTS_RPC_PASSWORD}"
]
depends_on:
- elements
networks:
bitcoinstacknet:
aliases:
- ${EMMA_HOST}
volumes:
- emma_data:/home/clightning/.lightning
- elements_shared:/elements