forked from apotdevin/thunderhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
105 lines (99 loc) · 3.08 KB
/
docker-compose.yaml
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
101
102
103
104
105
# Important: 127.0.0.1 should be replaced by the external ip address of the machine
version: "3"
services:
gatewayd:
image: fedimint/gatewayd:v0.2.1
command: gatewayd lnd
environment:
# Path to folder containing gateway config and data files
- FM_GATEWAY_DATA_DIR=/gateway_data
# Gateway webserver listen address
- FM_GATEWAY_LISTEN_ADDR=0.0.0.0:8175
# Public URL from which the webserver API is reachable
- FM_GATEWAY_API_ADDR=http://127.0.0.1:8175
# Gateway webserver authentication password
- FM_GATEWAY_PASSWORD=thereisnosecondbest
# Configured gateway routing fees Format: <base_msat>,<proportional_millionths>
- FM_GATEWAY_FEES=0,0
# LND RPC address
- FM_LND_RPC_ADDR=https://lnd:10009
# LND TLS cert file path
- FM_LND_TLS_CERT=/lnd_data/tls.cert
# LND macaroon file path
- FM_LND_MACAROON=/lnd_data/data/chain/bitcoin/signet/admin.macaroon
volumes:
- gateway_datadir:/gateway_data
- lnd_datadir:/lnd_data:ro
ports:
- "8175:8175"
- "8080:8080"
depends_on:
- lnd
restart: always
platform: linux/amd64
lnd:
image: lightninglabs/lnd:v0.17.3-beta
entrypoint: bash
command:
- -c
- lnd --bitcoin.active --bitcoin.signet --bitcoin.dnsseed=0 --bitcoin.node=bitcoind --protocol.wumbo-channels --bitcoind.rpchost=bitcoind --bitcoind.rpcuser=bitcoin --bitcoind.rpcpass=bitcoin --bitcoind.zmqpubrawblock=tcp://bitcoind:48332 --bitcoind.zmqpubrawtx=tcp://bitcoind:48333 --listen=0.0.0.0:9735 --rpclisten=0.0.0.0:10009 --restlisten=0.0.0.0:8080 --tlsextradomain=lnd --noseedbackup
ports:
- "10009:10009"
- "0.0.0.0:9735:9735"
volumes:
- lnd_datadir:/root/.lnd
depends_on:
- bitcoind
restart: always
bitcoind:
image: fedimint/mutinynet-bitcoind:master
command: --rpcuser=bitcoin --rpcpassword=bitcoin -zmqpubrawblock=tcp://[::]:48332 -zmqpubrawtx=tcp://[::]:48333
ports:
- 0.0.0.0:38333:38333
volumes:
- "bitcoin_datadir:/root/.bitcoin"
restart: always
platform: linux/amd64
thunderhub_config_writer:
image: alpine:latest
command:
- sh
- -c
- |
cat <<EOF > /thconfig/accounts.yaml
masterPassword: "thereisnosecondbest"
accounts:
- name: "main lnd"
serverUrl: "lnd:10009"
lndDir: "/root/.lnd"
network: signet
EOF
tail -f /dev/null
volumes:
- thunderhub_datadir:/thconfig
depends_on:
- lnd
restart: always
thunderhub:
build:
context: .
dockerfile: Dockerfile
environment:
- ACCOUNT_CONFIG_PATH=/thconfig/accounts.yaml
- HOST=0.0.0.0
- PORT=3002
- FM_GATEWAY_API=http://127.0.0.1:8175
- FM_GATEWAY_PASSWORD=thereisnosecondbest
ports:
- "0.0.0.0:3002:3002"
volumes:
- lnd_datadir:/root/.lnd
- thunderhub_datadir:/thconfig
depends_on:
- thunderhub_config_writer
restart: always
volumes:
bitcoin_datadir:
lnd_datadir:
gateway_datadir:
thunderhub_datadir: