-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
176 lines (168 loc) · 3.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
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
- -debug=net
- -debug=mempool
- -debug=rpc
- -debug=txindex
- -debug=blocks
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:3000
- --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"
- "3000:3000"
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:
- electrs
env_file:
- path: ./.esplora.env
required: true
- path: ./.override.esplora.env
required: false
ports:
- "5050:5000"
restart: unless-stopped
networks:
vtto:
ipv4_address: 10.5.0.4
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
- ./services/faucet/memes:/usr/share/nginx/memes/
depends_on:
- bitcoin
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
postgrest-coordinator:
container_name: postgrest-coordinator
image: postgrest/postgrest
depends_on:
- db
ports:
- "3002:3002"
environment:
PGRST_DB_URI: "postgres://postgres:mysecretpassword@db:5432/orderbook"
PGRST_DB_SCHEMA: "public"
PGRST_DB_ANON_ROLE: "postgres"
PGRST_SERVER_PORT: "3002"
restart: always
networks:
vtto:
ipv4_address: 10.5.0.10
profiles: ['postgrest']
networks:
default:
name: vtto
vtto:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1
volumes:
bitcoin:
postgres:
electrs: