This repository was archived by the owner on Jul 27, 2026. It is now read-only.
forked from blockscout/blockscout
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.all-chains.yml
More file actions
233 lines (220 loc) · 7.48 KB
/
Copy pathcompose.all-chains.yml
File metadata and controls
233 lines (220 loc) · 7.48 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
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
# LUX Network Multi-Chain Explorer - All Chains
# This compose file brings up ALL chain explorers for mainnet
#
# Chains:
# - A-Chain (AI): Custom indexer on port 4500
# - B-Chain (Bridge): Custom indexer on port 4600
# - C-Chain (EVM): Blockscout on ports 3000/4000
# - P-Chain (Platform): Custom indexer on port 4100
# - Q-Chain (Quantum): Custom indexer on port 4300
# - T-Chain (Teleport): Custom indexer on port 4700
# - X-Chain (Exchange): Custom indexer on port 4200
# - Z-Chain (ZK): Custom indexer on port 4400 (coming soon)
#
# Usage: docker-compose -f docker-compose.all-chains.yml up -d
x-indexer-common: &indexer-common
image: ghcr.io/luxfi/indexer:${INDEXER_VERSION:-v0.2.0}
pull_policy: always
restart: always
networks:
- hanzo-network
extra_hosts:
- "host.docker.internal:host-gateway"
services:
# ===========================================
# A-Chain (AI) - Custom Indexer
# ===========================================
a-indexer:
<<: *indexer-common
container_name: 'lux-achain-indexer'
command: ["-chain", "achain", "-port", "4000"]
ports:
- "4500:4000"
environment:
RPC_ENDPOINT: http://host.docker.internal:9630/ext/bc/A
DATABASE_URL: postgresql://blockscout:blockscout@lux-postgres:5432/explorer_achain?sslmode=disable
HTTP_PORT: 4000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
# ===========================================
# B-Chain (Bridge) - Custom Indexer
# ===========================================
b-indexer:
<<: *indexer-common
container_name: 'lux-bchain-indexer'
command: ["-chain", "bchain", "-port", "4000"]
ports:
- "4600:4000"
environment:
RPC_ENDPOINT: http://host.docker.internal:9630/ext/bc/B
DATABASE_URL: postgresql://blockscout:blockscout@lux-postgres:5432/explorer_bchain?sslmode=disable
HTTP_PORT: 4000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
# ===========================================
# C-Chain (EVM) - Blockscout
# ===========================================
c-backend:
image: ghcr.io/blockscout/blockscout:${DOCKER_TAG:-latest}
pull_policy: always
restart: always
container_name: 'lux-cchain-backend'
command: sh -c "bin/blockscout eval 'Explorer.ReleaseTasks.create_and_migrate()' && bin/blockscout start"
ports:
- "4000:4000"
networks:
- hanzo-network
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
ETHEREUM_JSONRPC_VARIANT: geth
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:9630/ext/bc/C/rpc
ETHEREUM_JSONRPC_TRACE_URL: http://host.docker.internal:9630/ext/bc/C/rpc
CHAIN_ID: '96369'
DATABASE_URL: postgresql://blockscout:blockscout@lux-postgres:5432/explorer_luxnet?sslmode=disable
ECTO_USE_SSL: 'false'
POOL_SIZE: 40
SECRET_KEY_BASE: 56NtB48ear7+wMSf0IQuWDAAazhpb31qyc7GiyspBP2vh7t5zlCsF5QDv76chXeN
COIN: LUX
PORT: 4000
API_V2_ENABLED: 'true'
c-frontend:
image: ghcr.io/blockscout/frontend:${FRONTEND_TAG:-latest}
pull_policy: always
restart: always
container_name: 'lux-cchain-frontend'
depends_on:
- c-backend
ports:
- "3000:3000"
networks:
- hanzo-network
environment:
NEXT_PUBLIC_API_HOST: api-explore.lux.network
NEXT_PUBLIC_API_PROTOCOL: https
NEXT_PUBLIC_NETWORK_NAME: "LUX Network"
NEXT_PUBLIC_NETWORK_ID: 96369
NEXT_PUBLIC_NETWORK_CURRENCY_NAME: LUX
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL: LUX
# ===========================================
# P-Chain (Platform) - Custom Indexer
# ===========================================
p-indexer:
<<: *indexer-common
container_name: 'lux-pchain-indexer'
command: ["-chain", "pchain", "-port", "4000"]
ports:
- "4100:4000"
environment:
RPC_ENDPOINT: http://host.docker.internal:9630/ext/bc/P
DATABASE_URL: postgresql://blockscout:blockscout@lux-postgres:5432/explorer_pchain?sslmode=disable
HTTP_PORT: 4000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
# ===========================================
# Q-Chain (Quantum) - Custom Indexer
# ===========================================
q-indexer:
<<: *indexer-common
container_name: 'lux-qchain-indexer'
command: ["-chain", "qchain", "-port", "4000"]
ports:
- "4300:4000"
environment:
RPC_ENDPOINT: http://host.docker.internal:9630/ext/bc/Q
DATABASE_URL: postgresql://blockscout:blockscout@lux-postgres:5432/explorer_qchain?sslmode=disable
HTTP_PORT: 4000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
# ===========================================
# T-Chain (Teleport) - Custom Indexer
# ===========================================
t-indexer:
<<: *indexer-common
container_name: 'lux-tchain-indexer'
command: ["-chain", "tchain", "-port", "4000"]
ports:
- "4700:4000"
environment:
RPC_ENDPOINT: http://host.docker.internal:9630/ext/bc/T
DATABASE_URL: postgresql://blockscout:blockscout@lux-postgres:5432/explorer_tchain?sslmode=disable
HTTP_PORT: 4000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
# ===========================================
# X-Chain (Exchange) - Custom Indexer
# ===========================================
x-indexer:
<<: *indexer-common
container_name: 'lux-xchain-indexer'
command: ["-chain", "xchain", "-port", "4000"]
ports:
- "4200:4000"
environment:
RPC_ENDPOINT: http://host.docker.internal:9630/ext/bc/X
DATABASE_URL: postgresql://blockscout:blockscout@lux-postgres:5432/explorer_xchain?sslmode=disable
HTTP_PORT: 4000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
# ===========================================
# Z-Chain (ZK) - Custom Indexer (Coming Soon)
# ===========================================
z-indexer:
<<: *indexer-common
container_name: 'lux-zchain-indexer'
command: ["-chain", "zchain", "-port", "4000"]
ports:
- "4400:4000"
environment:
RPC_ENDPOINT: http://host.docker.internal:9630/ext/bc/Z
DATABASE_URL: postgresql://blockscout:blockscout@lux-postgres:5432/explorer_zchain?sslmode=disable
HTTP_PORT: 4000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
profiles:
- future # Z-Chain not yet live, enable with --profile future
# ===========================================
# Shared Services
# ===========================================
visualizer:
image: ghcr.io/blockscout/visualizer:${VISUALIZER_VERSION:-latest}
pull_policy: always
restart: always
container_name: 'lux-visualizer'
networks:
- hanzo-network
ports:
- "8050:8050"
sig-provider:
image: ghcr.io/blockscout/sig-provider:${SIG_PROVIDER_VERSION:-latest}
pull_policy: always
restart: always
container_name: 'lux-sig-provider'
networks:
- hanzo-network
ports:
- "8051:8050"
networks:
hanzo-network:
external: true