Skip to content

Commit 51d1410

Browse files
add sample docker-compose
Signed-off-by: Nitesh Balusu <niteshbalusu@icloud.com>
1 parent 30b7428 commit 51d1410

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Self hosted Lightning Address Server and NIP-05 Verification Server
33
<br></br>
44

5+
### For Docker:
6+
7+
- Check the Dockerfile and the same-docker-compose.yml file.
8+
59
### To build from source:
610
Pre-requisites:
711
You will need rust installed.

sample-docker-compose.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
version: "3.9"
2+
services:
3+
lnd:
4+
container_name: lnd
5+
image: docker.io/lightninglabs/lnd:v0.16.0-beta
6+
restart: unless-stopped
7+
volumes:
8+
- /root/.lnd:/root/.lnd
9+
ports:
10+
- "9735:9735"
11+
- "10009:10009"
12+
- "8080:8080"
13+
command:
14+
lnd
15+
16+
rustdress:
17+
container_name: rustdress
18+
image: docker.io/niteshbalusu/rustdress:amd64 # or docker.io/niteshbalusu/rustdress:arm64
19+
depends_on: [lnd]
20+
restart: on-failure
21+
ports:
22+
- "5000:5000"
23+
environment:
24+
- USERNAME=your_username
25+
- DOMAIN=your_domain
26+
- CERT_HEX=your_cert_hex
27+
- MACAROON_HEX=your_macaroon_hex
28+
- SOCKET=lnd:10009
29+
- HOST=0.0.0.0
30+
- PORT=5000
31+
- INCLUDE_HOP_HINTS=true
32+
- NOSTR_PRIVATE_KEY=random_nostr_private_key
33+
- NIP_05_PUBKEY=your_nostr_pubkey
34+
- RELAYS=wss://relay.nostr.band, wss://brb.io
35+
36+
caddy:
37+
container_name: caddy # caddy is a reverse proxy that will handle the SSL certificate and redirect traffic to rustdress
38+
image: caddy:2.6.4
39+
restart: on-failure
40+
depends_on: [rustdress]
41+
ports:
42+
- "80:80"
43+
- "443:443"
44+
- "443:443/udp"
45+
volumes:
46+
- /root/Caddyfile:/etc/caddy/Caddyfile
47+
- /root/caddy/data:/data
48+
- /root/caddy/config:/config
49+
50+
networks:
51+
default:
52+
name: lnd_network
53+
external: true
54+

0 commit comments

Comments
 (0)