forked from MutinyWallet/mutiny-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
271 lines (268 loc) · 7.98 KB
/
docker-compose.yml
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
version: "3.7"
x-logging:
&default-logging
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
services:
bitcoind:
container_name: "bitcoind"
build: .
user: "0:1000"
logging: *default-logging
restart: always
stop_grace_period: 1m
volumes:
- ~/volumes/.bitcoin:/root/.bitcoin
environment:
UACOMMENT: $UACOMMENT
BLOCKPRODUCTIONDELAY: $BLOCKPRODUCTIONDELAY
NBITS: $NBITS
RPCPASSWORD: $RPCPASSWORD
PRIVKEY: $PRIVKEY
SIGNETCHALLENGE: $SIGNETCHALLENGE
EXTERNAL_IP: $EXTERNAL_IP
ports:
- "28332:28332"
- "28333:28333"
- "28334:28334"
- "38332:38332"
- "38333:38333"
- "38334:38334"
lnd:
container_name: "lnd"
image: lightninglabs/lnd:v0.18.2-beta
user: "0:1000"
logging: *default-logging
restart: always
stop_grace_period: 10m
environment:
RPCPASSWORD: $RPCPASSWORD
command: [
"--bitcoin.active",
"--bitcoin.signet",
"--bitcoin.node=bitcoind",
"--maxpendingchannels=10",
"--rpclisten=0.0.0.0:10009",
"--restlisten=0.0.0.0:8081",
"--bitcoind.rpchost=bitcoind:38332",
"--bitcoind.rpcuser=bitcoin",
"--bitcoind.rpcpass=$RPCPASSWORD",
"--bitcoind.zmqpubrawblock=tcp://bitcoind:28332",
"--bitcoind.zmqpubrawtx=tcp://bitcoind:28333",
"--db.bolt.auto-compact",
"--db.prune-revocation",
"--alias=Faucet LND",
"--externalip=mutinynet.com",
"--externalip=gfg7fwat27mnsmlog7wbgi6a53f2b5rj56bwokcfk45bacnb4z5kt5ad.onion",
"--tlsextradomain=mutinynet.com",
"--tlsextradomain=lnd",
"--protocol.option-scid-alias",
"--protocol.wumbo-channels",
"--accept-keysend",
"--minchansize=25000",
"--noseedbackup",
"--gc-canceled-invoices-on-startup",
"--coin-selection-strategy=random",
"--protocol.custom-message=513",
"--protocol.custom-nodeann=39",
"--protocol.custom-init=39",
]
volumes:
- ~/volumes/.lnd:/root/.lnd
ports:
- "9735:9735"
- "10009:10009"
- "8081:8081"
lndk:
build: ./lndk
restart: unless-stopped
user: "0:1000"
logging: *default-logging
depends_on:
- lnd
command: --address=https://lnd:10009 --cert-path=/root/.lnd/tls.cert --macaroon-path=/root/.lnd/data/chain/bitcoin/signet/admin.macaroon --log-level=trace --grpc-host=0.0.0.0
environment:
- RUST_BACKTRACE=1
volumes:
- ~/volumes/lndk:/root/.lndk
- ~/volumes/.lnd:/root/.lnd:ro
rgs_server:
container_name: "rgs-server"
logging: *default-logging
restart: always
stop_grace_period: 1m
build:
context: ./rapid-gossip-sync-server
dockerfile: ./docker/Dockerfile.rgs
volumes:
- ~/volumes/rgs:/usr/src/app:cached
links:
- postgres
- bitcoind
depends_on:
- postgres
environment:
RAPID_GOSSIP_SYNC_SERVER_DB_HOST: postgres
RAPID_GOSSIP_SYNC_SERVER_DB_USER: lightning-rgs
RAPID_GOSSIP_SYNC_SERVER_DB_PASSWORD: docker
RAPID_GOSSIP_SYNC_SERVER_DB_NAME: ln_graph_sync
RAPID_GOSSIP_SYNC_SERVER_NETWORK: signet
RAPID_GOSSIP_SYNC_SERVER_SNAPSHOT_INTERVAL: 3600 # 1 hour
BITCOIN_REST_DOMAIN: bitcoind
BITCOIN_REST_PORT: 38332
LN_PEERS: 02465ed5be53d04fde66c9418ff14a5f2267723810176c9212b722e542dc1afb1b@lnd:9735 # lnd's node id
entrypoint: [ "rapid-gossip-sync-server" ]
postgres:
container_name: "postgres"
image: 'postgres:12-alpine'
logging: *default-logging
restart: always
stop_grace_period: 1m
user: "0:1000"
ports:
- "5432:5432"
volumes:
- ~/volumes/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: lightning-rgs
POSTGRES_PASSWORD: docker
POSTGRES_DB: ln_graph_sync
electrs:
container_name: "electrs"
build:
context: ./electrs
user: "0:1000"
logging: *default-logging
restart: always
stop_grace_period: 1m
environment:
FLAGS: '-vvvv --signet-magic cb2ddfa5 --jsonrpc-import --daemon-dir /root/.bitcoin/signet --daemon-rpc-addr bitcoind:38332 --timestamp --blocks-dir /root/.bitcoin/signet/blocks --cookie=bitcoin:$RPCPASSWORD --db-dir /root/.electrs --network signet --electrum-rpc-addr 0.0.0.0:50001 --http-addr 0.0.0.0:3003'
volumes:
- ~/volumes/electrs:/root/.electrs
ports:
- "3003:3003"
- "50001:50001"
nutshell:
container_name: "nutshell"
image: 'cashubtc/nutshell:0.15.2'
logging: *default-logging
restart: always
stop_grace_period: 1m
user: "0:1000"
ports:
- "3338:3338"
environment:
MINT_LIGHTNING_BACKEND: "LndRestWallet"
MINT_LISTEN_HOST: "0.0.0.0"
MINT_LISTEN_PORT: "3338"
MINT_PRIVATE_KEY: $MINT_PRIVATE_KEY
MINT_LND_REST_ENDPOINT: "https://lnd:8081"
MINT_LND_REST_CERT: "/root/.lnd/tls.cert"
MINT_LND_REST_MACAROON: "/root/.lnd/data/chain/bitcoin/signet/admin.macaroon"
command: [ "poetry", "run", "mint" ]
volumes:
- ~/volumes/.lnd:/root/.lnd:ro
- ~/volumes/nutshell:/root/.cashu
faucet:
container_name: "faucet"
image: ghcr.io/mutinywallet/mutinynet-faucet:master
user: "0:1000"
logging: *default-logging
restart: always
stop_grace_period: 1m
volumes:
- ~/volumes/faucet:/root/.faucet
ports:
- "3000:3000"
faucet_backend:
container_name: "faucet_backend"
image: ghcr.io/mutinywallet/mutinynet-faucet-rs:master
environment:
RUST_LOG: "info"
BITCOIN_RPC_HOST_AND_PORT: "bitcoind:38332"
BITCOIN_RPC_USER: "bitcoin"
BITCOIN_RPC_PASSWORD: $RPCPASSWORD
NSEC: $NSEC
NETWORK: "signet"
HOST: "https://faucet.mutinynet.com"
GRPC_PORT: "10009"
GRPC_HOST: "lnd"
TLS_CERT_PATH: "/root/.lnd/tls.cert"
ADMIN_MACAROON_PATH: "/root/.lnd/data/chain/bitcoin/signet/admin.macaroon"
user: "0:1000"
logging: *default-logging
restart: always
stop_grace_period: 1m
volumes:
- ~/volumes/.lnd:/root/.lnd:ro
ports:
- "3001:3001"
web:
container_name: "mempool_frontend"
environment:
MAINNET_ENABLED: "false"
ROOT_NETWORK: "signet"
FRONTEND_HTTP_PORT: "8080"
BACKEND_MAINNET_HTTP_HOST: "api"
LIGHTNING: "true"
image: mempool/frontend:latest
user: "0:1000"
logging: *default-logging
restart: always
stop_grace_period: 1m
command: "./wait-for db:3306 --timeout=720 -- nginx -g 'daemon off;'"
ports:
- "8080:8080"
api:
container_name: "mempool_backend"
environment:
MEMPOOL_NETWORK: "signet"
MEMPOOL_BACKEND: "none"
ELECTRUM_HOST: "electrs"
ELECTRUM_PORT: "50001"
ELECTRUM_TLS_ENABLED: "false"
ESPLORA_REST_API_URL: "http://electrs:3003"
CORE_RPC_HOST: "bitcoind"
CORE_RPC_PORT: "38332"
CORE_RPC_USERNAME: "bitcoin"
CORE_RPC_PASSWORD: $RPCPASSWORD
CORE_RPC_TIMEOUT: "60000"
DATABASE_ENABLED: "true"
DATABASE_HOST: "db"
DATABASE_DATABASE: "mempool"
DATABASE_USERNAME: "mempool"
DATABASE_PASSWORD: "mempool"
STATISTICS_ENABLED: "false"
LIGHTNING_ENABLED: "true"
LIGHTNING_BACKEND: "lnd"
LND_TLS_CERT_PATH: "/root/.lnd/tls.cert"
LND_MACAROON_PATH: "/root/.lnd/data/chain/bitcoin/signet/admin.macaroon"
LND_REST_API_URL: "https://lnd:8081"
image: mempool/backend:latest
logging: *default-logging
user: "0:1000"
restart: always
stop_grace_period: 1m
command: "./wait-for-it.sh db:3306 --timeout=720 --strict -- ./start.sh"
ports:
- "8889:8889"
- "8999:8999"
volumes:
- ~/volumes/mempool:/backend/cache
- ~/volumes/.lnd:/root/.lnd:ro
db:
container_name: "mempool_db"
environment:
MYSQL_DATABASE: "mempool"
MYSQL_USER: "mempool"
MYSQL_PASSWORD: "mempool"
MYSQL_ROOT_PASSWORD: "admin"
image: mariadb:10.5.8
logging: *default-logging
user: "0:1000"
restart: always
stop_grace_period: 1m
volumes:
- ~/volumes/mysql/data:/var/lib/mysql