Skip to content

Commit 7686341

Browse files
committed
Unify Docker Compose files with profiles for CLN, LND, and Eclair
Update CI workflows to use unified Docker Compose with profiles
1 parent a703e18 commit 7686341

5 files changed

Lines changed: 89 additions & 165 deletions

File tree

.github/workflows/cln-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
sudo apt-get install -y socat
2020
2121
- name: Start bitcoind, electrs, and lightningd
22-
run: docker compose -f docker-compose-cln.yml up -d
22+
run: docker compose --profile cln up -d
2323

2424
- name: Forward lightningd RPC socket
2525
run: |

.github/workflows/lnd-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: echo "LND_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV
3838

3939
- name: Start bitcoind, electrs, and LND
40-
run: docker compose -f docker-compose-lnd.yml up -d
40+
run: docker compose --profile lnd up -d
4141
env:
4242
LND_DATA_DIR: ${{ env.LND_DATA_DIR }}
4343

docker-compose-cln.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

docker-compose-lnd.yml

Lines changed: 0 additions & 86 deletions
This file was deleted.

docker-compose.yml

Lines changed: 87 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3'
2-
31
services:
42
bitcoin:
53
image: blockstream/bitcoind:27.2
@@ -14,11 +12,15 @@ services:
1412
"-rpcuser=user",
1513
"-rpcpassword=pass",
1614
"-fallbackfee=0.00001",
17-
"-rest"
15+
"-rest",
16+
"-zmqpubrawblock=tcp://0.0.0.0:28332",
17+
"-zmqpubrawtx=tcp://0.0.0.0:28333"
1818
]
1919
ports:
2020
- "18443:18443" # Regtest REST and RPC port
2121
- "18444:18444" # Regtest P2P port
22+
- "28332:28332" # ZMQ block port
23+
- "28333:28333" # ZMQ tx port
2224
networks:
2325
- bitcoin-electrs
2426
healthcheck:
@@ -41,10 +43,91 @@ services:
4143
"--cookie=user:pass",
4244
"--network=regtest",
4345
"--daemon-rpc-addr=bitcoin:18443",
44-
"--http-addr=0.0.0.0:3002"
46+
"--http-addr=0.0.0.0:3002",
47+
"--electrum-rpc-addr=0.0.0.0:50001"
4548
]
4649
ports:
4750
- "3002:3002"
51+
- "50001:50001"
52+
networks:
53+
- bitcoin-electrs
54+
55+
cln:
56+
image: blockstream/lightningd:v23.08
57+
platform: linux/amd64
58+
profiles: ["cln"]
59+
depends_on:
60+
bitcoin:
61+
condition: service_healthy
62+
command:
63+
[
64+
"--bitcoin-rpcconnect=bitcoin",
65+
"--bitcoin-rpcport=18443",
66+
"--bitcoin-rpcuser=user",
67+
"--bitcoin-rpcpassword=pass",
68+
"--regtest",
69+
"--experimental-anchors",
70+
]
71+
ports:
72+
- "19846:19846"
73+
- "9937:9937"
74+
networks:
75+
- bitcoin-electrs
76+
77+
lnd:
78+
image: lightninglabs/lnd:v0.18.5-beta
79+
container_name: ldk-node-lnd
80+
profiles: ["lnd"]
81+
depends_on:
82+
- bitcoin
83+
volumes:
84+
- ${LND_DATA_DIR}:/root/.lnd
85+
ports:
86+
- "8081:8081"
87+
- "9735:9735"
88+
command:
89+
- "--noseedbackup"
90+
- "--trickledelay=5000"
91+
- "--alias=ldk-node-lnd-test"
92+
- "--externalip=lnd:9735"
93+
- "--bitcoin.active"
94+
- "--bitcoin.regtest"
95+
- "--bitcoin.node=bitcoind"
96+
- "--bitcoind.rpchost=bitcoin:18443"
97+
- "--bitcoind.rpcuser=user"
98+
- "--bitcoind.rpcpass=pass"
99+
- "--bitcoind.zmqpubrawblock=tcp://bitcoin:28332"
100+
- "--bitcoind.zmqpubrawtx=tcp://bitcoin:28333"
101+
- "--accept-keysend"
102+
- "--rpclisten=0.0.0.0:8081"
103+
- "--tlsextradomain=lnd"
104+
- "--tlsextraip=0.0.0.0"
105+
networks:
106+
- bitcoin-electrs
107+
108+
eclair:
109+
image: eclairfr/eclair:v0.11.0
110+
platform: linux/amd64
111+
profiles: ["eclair"]
112+
depends_on:
113+
bitcoin:
114+
condition: service_healthy
115+
ports:
116+
- "8080:8080"
117+
- "9736:9736"
118+
environment:
119+
- JAVA_OPTS=-Declair.chain=regtest
120+
-Declair.server.port=9736
121+
-Declair.api.enabled=true
122+
-Declair.api.port=8080
123+
-Declair.api.password=eclairpassword
124+
-Declair.bitcoind.host=bitcoin
125+
-Declair.bitcoind.rpcuser=user
126+
-Declair.bitcoind.rpcpassword=pass
127+
-Declair.bitcoind.rpcport=18443
128+
-Declair.bitcoind.wallet=eclair
129+
-Declair.bitcoind.zmqblock=tcp://bitcoin:28332
130+
-Declair.bitcoind.zmqtx=tcp://bitcoin:28333
48131
networks:
49132
- bitcoin-electrs
50133

0 commit comments

Comments
 (0)