forked from get10101/10101
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
195 lines (187 loc) · 4.26 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
version: "3.8"
services:
# RPC daemon
bitcoin:
image: ghcr.io/vulpemventures/bitcoin:latest
user: 1000:1000
container_name: bitcoin
command:
- -regtest=1
- -port=18444
- -rpcport=18443
- -txindex=1
- -rpcuser=admin1
- -rpcpassword=123
- -rpcallowip=0.0.0.0/0
- -rpcbind=0.0.0.0
- -fallbackfee=0.00001
- -zmqpubrawblock=tcp://0.0.0.0:28332
- -zmqpubrawtx=tcp://0.0.0.0:28333
ports:
- "18443:18443"
- "18444:18444"
# ZMQ
- "28332:28332"
- "28333:28333"
volumes:
- bitcoin:/home/bitcoin/.bitcoin
restart: unless-stopped
networks:
vtto:
ipv4_address: 10.5.0.2
# Block explorer server
electrs:
image: ghcr.io/vulpemventures/electrs:latest
container_name: electrs
entrypoint:
- /build/electrs
command:
- -vvvv
- --network
- regtest
- --daemon-dir
- /home/user/.bitcoin
- --db-dir
- /home/user/db
- --daemon-rpc-addr
- 10.5.0.2:18443
- --cookie
- admin1:123
- --http-addr
- 0.0.0.0:30000
- --electrum-rpc-addr
- 0.0.0.0:50000
- --cors
- "*"
- --jsonrpc-import
volumes:
- bitcoin:/home/user/.bitcoin:ro
- electrs:/home/user/db
depends_on:
- bitcoin
ports:
- "50000:50000"
- "30000:30000"
restart: unless-stopped
networks:
vtto:
ipv4_address: 10.5.0.3
# Block explorer frontend
esplora:
image: ghcr.io/vulpemventures/esplora:latest
container_name: esplora
depends_on:
- chopsticks
environment:
API_URL: http://localhost:3000
ports:
- "5050:5000"
restart: unless-stopped
networks:
vtto:
ipv4_address: 10.5.0.4
# Chopsticks
chopsticks:
image: ghcr.io/vulpemventures/nigiri-chopsticks:latest
container_name: chopsticks
command:
- --use-faucet
- --use-mining
- --use-logger
- --rpc-addr
- 10.5.0.2:18443
- --electrs-addr
- 10.5.0.3:30000
- --addr
- 0.0.0.0:3000
depends_on:
- bitcoin
- electrs
ports:
- "3000:3000"
restart: unless-stopped
networks:
vtto:
ipv4_address: 10.5.0.5
lnd:
container_name: lnd
image: lightninglabs/lnd:v0.16.2-beta
depends_on:
- bitcoin
command:
- --configfile=/var/lib/lnd/lnd.conf
volumes:
- ./services/faucet/lnd.conf:/var/lib/lnd/lnd.conf
- lnd:/root/.lnd
restart: unless-stopped
stop_grace_period: 5m30s
ports:
- "9735:9735" # p2p
- "10009:10009" # grpc
- "18080:18080" # rest
networks:
vtto:
ipv4_address: 10.5.0.6
faucet:
image: nginx
container_name: faucet
ports:
- "8080:80"
volumes:
- ./services/faucet/faucet.html:/usr/share/nginx/html/faucet/index.html
- ./services/faucet/open_channel.html:/usr/share/nginx/html/channel/index.html
- ./services/faucet/default.conf:/etc/nginx/conf.d/default.conf
- ./services/faucet/btc-fee-estimates.json:/usr/share/nginx/html/fee/btc-fee-estimates.json
depends_on:
- bitcoin
- lnd
restart: unless-stopped
networks:
vtto:
ipv4_address: 10.5.0.7
db:
container_name: db
image: postgres:15-alpine
volumes:
- postgres:/var/lib/postgresql/data
- ./services/database:/docker-entrypoint-initdb.d/
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: mysecretpassword
networks:
vtto:
ipv4_address: 10.5.0.8
oracle:
container_name: oracle
image: ghcr.io/holzeis/p2pdoracle:0.4.3
depends_on:
- db
ports:
- "8081:8081"
environment:
P2PDORACLE_DATABASE_HOST: db
P2PDORACLE_ORACLE_KEYFILE: /key/key.pem
P2PDORACLE_ORACLE_KEYPASS: EFRMPJKf6hQvNjHsgtnjBtKQ2k+YzrTrjcC8vrQegUY=
volumes:
- ./services/oracle/default.yml:/config/default.yml
- ./services/oracle/key.pem:/key/key.pem
restart: always
networks:
vtto:
ipv4_address: 10.5.0.9
networks:
default:
name: vtto
vtto:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1
volumes:
bitcoin:
postgres:
lnd:
electrs: