-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathdocker-compose-eclair.yml
More file actions
81 lines (79 loc) · 2.43 KB
/
Copy pathdocker-compose-eclair.yml
File metadata and controls
81 lines (79 loc) · 2.43 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
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
services:
# All services use host networking because Eclair subscribes to bitcoind
# ZMQ notifications (hashblock/rawtx). ZMQ PUB/SUB over Docker bridge
# networking is unreliable -- the subscriber may silently miss messages,
# causing Eclair to fall behind the chain tip. Host networking avoids
# this by keeping all inter-process communication on localhost.
bitcoin:
image: blockstream/bitcoind:31.1
platform: linux/amd64
network_mode: host
command:
[
"bitcoind",
"-printtoconsole",
"-regtest=1",
"-rpcallowip=0.0.0.0/0",
"-rpcbind=0.0.0.0",
"-rpcuser=user",
"-rpcpassword=pass",
"-fallbackfee=0.00001",
"-rest",
"-txindex=1",
"-zmqpubhashblock=tcp://0.0.0.0:28332",
"-zmqpubrawtx=tcp://0.0.0.0:28333"
]
healthcheck:
test: ["CMD", "bitcoin-cli", "-regtest", "-rpcuser=user", "-rpcpassword=pass", "getblockchaininfo"]
interval: 5s
timeout: 10s
retries: 5
electrs:
image: mempool/electrs:v3.2.0
platform: linux/amd64
network_mode: host
depends_on:
bitcoin:
condition: service_healthy
command:
[
"-vvvv",
"--timestamp",
"--jsonrpc-import",
"--cookie=user:pass",
"--network=regtest",
"--daemon-rpc-addr=127.0.0.1:18443",
"--http-addr=0.0.0.0:3002",
"--electrum-rpc-addr=0.0.0.0:50001"
]
eclair:
build:
context: .
dockerfile: Dockerfile.eclair
image: ldk-node-eclair:local
platform: linux/amd64
network_mode: host
depends_on:
bitcoin:
condition: service_healthy
environment:
JAVA_OPTS: >-
-Xmx512m
-Declair.allow-unsafe-startup=true
-Declair.chain=regtest
-Declair.server.port=9736
-Declair.api.enabled=true
-Declair.api.binding-ip=0.0.0.0
-Declair.api.port=8080
-Declair.api.password=eclairpassword
-Declair.bitcoind.host=127.0.0.1
-Declair.bitcoind.rpcport=18443
-Declair.bitcoind.rpcuser=user
-Declair.bitcoind.rpcpassword=pass
-Declair.bitcoind.wallet=eclair
-Declair.bitcoind.zmqblock=tcp://127.0.0.1:28332
-Declair.bitcoind.zmqtx=tcp://127.0.0.1:28333
-Declair.features.keysend=optional
-Declair.on-chain-fees.confirmation-priority.funding=slow
${ECLAIR_EXTRA_JAVA_OPTS:-}
-Declair.printToConsole