-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
144 lines (135 loc) · 3.82 KB
/
docker-compose.yml
File metadata and controls
144 lines (135 loc) · 3.82 KB
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
services:
relay:
image: scsibug/nostr-rs-relay:latest
platform: linux/amd64
ports:
- "7777:8080"
volumes:
- relay-data:/usr/src/app/db
blossom:
image: ghcr.io/hzrd149/blossom-server:master
platform: linux/amd64
ports:
- "3333:3000"
volumes:
- blossom-data:/app/data
- ./blossom-config.yml:/app/config.yml
tlsn-verifier:
build:
context: ./crates/tlsn-server
ports:
- "7046:7046"
- "7047:7047"
# --- Lightning regtest stack ---
bitcoind:
image: boltz/bitcoin-core:27.1
command: >-
-regtest -fallbackfee=0.00000253
-zmqpubrawtx=tcp://0.0.0.0:29000
-zmqpubrawblock=tcp://0.0.0.0:29001
-zmqpubhashblock=tcp://0.0.0.0:29002
-txindex -rpcallowip=0.0.0.0/0 -rpcbind=0.0.0.0
-rpcuser=cashu -rpcpassword=cashu
expose:
- "18443"
- "29000"
- "29001"
- "29002"
volumes:
- bitcoin-data:/root/.bitcoin
# LND node for the Cashu mint
lnd-mint:
image: boltz/lnd:0.18.1-beta
depends_on:
- bitcoind
restart: on-failure
entrypoint: >-
sh -c 'sleep 15; lnd
--listen=lnd-mint:9735
--rpclisten=lnd-mint:10009
--restlisten=lnd-mint:8081
--bitcoin.active --bitcoin.regtest
--bitcoin.node=bitcoind
--bitcoind.rpchost=bitcoind
--bitcoind.zmqpubrawtx=tcp://bitcoind:29000
--bitcoind.zmqpubrawblock=tcp://bitcoind:29001
--bitcoind.rpcuser=cashu --bitcoind.rpcpass=cashu
--noseedbackup --protocol.wumbo-channels
--tlsextradomain=lnd-mint'
expose:
- "8081"
- "9735"
- "10009"
volumes:
- lnd-mint-data:/root/.lnd
# LND node for the user (Requester pays invoices from here)
lnd-user:
image: boltz/lnd:0.18.1-beta
depends_on:
- bitcoind
restart: on-failure
entrypoint: >-
sh -c 'sleep 15; lnd
--listen=lnd-user:9735
--rpclisten=lnd-user:10009
--restlisten=lnd-user:8081
--bitcoin.active --bitcoin.regtest
--bitcoin.node=bitcoind
--bitcoind.rpchost=bitcoind
--bitcoind.zmqpubrawtx=tcp://bitcoind:29000
--bitcoind.zmqpubrawblock=tcp://bitcoind:29001
--bitcoind.rpcuser=cashu --bitcoind.rpcpass=cashu
--noseedbackup --protocol.wumbo-channels
--tlsextradomain=lnd-user'
ports:
- "8081:8081"
- "10009:10009"
volumes:
- lnd-user-data:/root/.lnd
cashu-mint:
image: cashubtc/nutshell:latest
depends_on:
- lnd-mint
restart: on-failure
ports:
- "3338:3338"
environment:
MINT_BACKEND_BOLT11_SAT: LndRestWallet
MINT_LISTEN_HOST: "0.0.0.0"
MINT_LISTEN_PORT: "3338"
MINT_PRIVATE_KEY: "testtesttesttesttesttesttesttest"
MINT_LND_REST_ENDPOINT: https://lnd-mint:8081/
MINT_LND_REST_CERT: /lnd/tls.cert
MINT_LND_REST_MACAROON: /lnd/data/chain/bitcoin/regtest/admin.macaroon
MINT_LND_REST_CERT_VERIFY: "FALSE"
MINT_RATE_LIMIT: "FALSE"
volumes:
- lnd-mint-data:/lnd:ro
command: ["poetry", "run", "mint"]
# Two-party-binary-bet order book persistence. The official postgres image
# auto-runs every *.sql under /docker-entrypoint-initdb.d on first start,
# so the order-book schema is applied without a separate migrate step.
postgres:
image: postgres:16-alpine
restart: on-failure
environment:
POSTGRES_USER: anchr
POSTGRES_PASSWORD: anchr
POSTGRES_DB: anchr_market
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./example/two-party-binary-bet/migrations:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U anchr -d anchr_market"]
interval: 2s
timeout: 2s
retries: 30
volumes:
relay-data:
blossom-data:
bitcoin-data:
lnd-mint-data:
lnd-user-data:
postgres-data: