Skip to content

Commit d92efc1

Browse files
committed
Add RTL container
1 parent f5fb384 commit d92efc1

File tree

6 files changed

+85
-4
lines changed

6 files changed

+85
-4
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ ELEMENTS_RPC_PORT=18886
4040
ELEMENTS_ZMQ_TX_PORT=28886
4141
ELEMENTS_ZMQ_BLOCK_PORT=28887
4242

43+
RTL_HOST=rtl
44+
RTL_PORT=3000
45+
4346
COMPOSE_FILE=docker-compose.bitcoin.yml:docker-compose.elements.yml:docker-compose.yml
4447
COMPOSE_PROJECT_NAME=bitcoinstack

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/*.cert
1+
/*.cert
2+
logs

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 2020-08-06
4+
- Add `RTL` v0.8.3 admin UI container with default configs for `alice` and `bob`
5+
36
## 2020-08-04
47
- Update `clightning` to v0.9.0 and add MPP example
58
- Update `bitcoind` to v0.20.1

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ Everything is configured to run in **regtest** mode but can be adjusted as requi
5252
### To Do
5353
- Clightning keysend example
5454
- Orchestration
55-
- Clightning RPC example
55+
- Clightning REST/RPC example
56+
- Add Clightning & Eclair configs to RTL
5657
- Libbitcoin reference
5758
- Elements token creation and transaction scripts
5859
- Token swaps within Elements
@@ -94,14 +95,14 @@ $ bin/stack frank getinfo
9495

9596
Generate some bitcoin tx spam (optional) to enable smart fee estimation.
9697
```
98+
$ docker-compose up -d demo
9799
$ docker-compose exec demo sh -c "node bitcoin-spam.js"
98100
$ bin/stack bitcoin estimatesmartfee 24 ECONOMICAL
99101
```
100102

101103
### Notification listener demo
102104
Start following the demo subscriber node in a separate terminal window to see invoice messages as they come through.
103105
```
104-
$ docker-compose up -d demo
105106
$ docker-compose logs -f demo
106107
$ bin/stack alice addinvoice 1000
107108
```
@@ -210,6 +211,12 @@ $ curl -XPOST -u :password http://127.0.0.1:8110/getinfo
210211
Clightning exposes a JSON-RPC interface via a socket... example to follow..
211212
```
212213

214+
## RTL Admin
215+
A [Ride-The-Lightning](https://github.com/Ride-The-Lightning/RTL) admin UI container is available. The interface is configured to monitor `alice` and `bob` by default and is available at `http://localhost:3000` with login password `rtl`.
216+
```
217+
$ docker-compose up -d rtl
218+
```
219+
213220
## Other information
214221
View daemon logs as follows:
215222
```

docker-compose.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,22 @@ services:
180180
- ALICE_RPC_PORT
181181
volumes:
182182
- ./node/app:/usr/src/app
183-
- alice_data:/lnd:ro
183+
- alice_data:/lnd:ro
184+
185+
rtl:
186+
container_name: ${COMPOSE_PROJECT_NAME}_rtl
187+
image: shahanafarooqui/rtl:0.8.3
188+
restart: unless-stopped
189+
ports:
190+
- "127.0.0.1:${RTL_PORT}:${RTL_PORT}"
191+
depends_on:
192+
- alice
193+
- bob
194+
environment:
195+
- PORT=${RTL_PORT}
196+
- HOST=${RTL_HOST}
197+
- RTL_CONFIG_PATH=/RTL/config
198+
volumes:
199+
- ./rtl:/RTL/config
200+
- alice_data:/alice:ro
201+
- bob_data:/bob:ro

rtl/RTL-Config.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"defaultNodeIndex": 1,
3+
"SSO": {
4+
"rtlSSO": 0,
5+
"rtlCookiePath": "",
6+
"logoutRedirectLink": ""
7+
},
8+
"nodes": [
9+
{
10+
"index": 1,
11+
"lnNode": "alice",
12+
"lnImplementation": "LND",
13+
"Authentication": {
14+
"macaroonPath": "/alice/data/chain/bitcoin/regtest",
15+
"configPath": "/alice"
16+
},
17+
"Settings": {
18+
"userPersona": "OPERATOR",
19+
"themeMode": "DAY",
20+
"themeColor": "PURPLE",
21+
"channelBackupPath": "/tmp",
22+
"bitcoindConfigPath": "",
23+
"enableLogging": true,
24+
"fiatConversion": false,
25+
"lnServerUrl": "https://alice:8090/v1"
26+
}
27+
},
28+
{
29+
"index": 2,
30+
"lnNode": "bob",
31+
"lnImplementation": "LND",
32+
"Authentication": {
33+
"macaroonPath": "/bob/data/chain/bitcoin/regtest",
34+
"configPath": "/bob"
35+
},
36+
"Settings": {
37+
"userPersona": "OPERATOR",
38+
"themeMode": "DAY",
39+
"themeColor": "BLUE",
40+
"channelBackupPath": "/tmp",
41+
"bitcoindConfigPath": "",
42+
"enableLogging": true,
43+
"fiatConversion": false,
44+
"lnServerUrl": "https://bob:8100/v1"
45+
}
46+
}
47+
],
48+
"multiPassHashed": "09317fe22ca2985249d900071ed1e7bba89a9eb8120d31f66e7143957e44dbcf"
49+
}

0 commit comments

Comments
 (0)