This repository was archived by the owner on May 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
140 lines (132 loc) · 5.39 KB
/
docker-compose.yml
File metadata and controls
140 lines (132 loc) · 5.39 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
# Sentrix Mainnet Blockscout deployment
# Extends upstream service definitions, overrides envs for chain 7119.
# Source: https://github.com/blockscout/blockscout/tree/master/docker-compose
services:
redis-db:
extends:
file: ../src/docker-compose/services/redis.yml
service: redis-db
db-init:
extends:
file: ../src/docker-compose/services/db.yml
service: db-init
db:
depends_on:
db-init:
condition: service_completed_successfully
extends:
file: ../src/docker-compose/services/db.yml
service: db
backend:
depends_on:
- db
- redis-db
extends:
file: ../src/docker-compose/services/backend.yml
service: backend
image: ghcr.io/blockscout/blockscout:8.0.2
pull_policy: always
ports:
- 127.0.0.1:4000:4000
links:
- db:database
environment:
ETHEREUM_JSONRPC_VARIANT: geth
ETHEREUM_JSONRPC_HTTP_URL: https://rpc.sentrixchain.com/
ETHEREUM_JSONRPC_TRACE_URL: https://rpc.sentrixchain.com/
ETHEREUM_JSONRPC_TRANSPORT: http
ETHEREUM_JSONRPC_HTTP_TIMEOUT: '15'
ETHEREUM_JSONRPC_DISABLE_ARCHIVE_BALANCES: 'true'
CHAIN_ID: '7119'
COIN: SRX
COIN_NAME: SRX
NETWORK: Sentrix
SUBNETWORK: Mainnet
BLOCKSCOUT_HOST: blockscout.sentrixchain.com
BLOCKSCOUT_PROTOCOL: https
DISABLE_EXCHANGE_RATES: 'true'
DISABLE_MARKET: 'true'
SHOW_PRICE_CHART: 'false'
SHOW_TXS_CHART: 'false'
TXS_STATS_DAYS_TO_COMPILE_AT_INIT: '0'
COIN_BALANCE_HISTORY_DAYS: '10'
# Indexer DISABLED until Sentrix RPC adds standard EVM block fields.
# Currently eth_getBlockByNumber omits: mixHash, stateRoot,
# receiptsRoot, logsBloom, sha3Uncles. Blockscout's block-decoder
# (EthereumJSONRPC.Block.do_elixir_to_params/1) pattern-matches all
# of these — missing fields → FunctionClauseError → indexer crash
# loop. Operator action: patch sentrix-rpc::routes::eth_block to
# include the standard fields (compute or zero-pad), then flip back
# to 'false'. Frontend + API remain functional with empty index.
DISABLE_INDEXER: 'true'
DISABLE_REALTIME_INDEXER: 'true'
INDEXER_DISABLE_TOKEN_INSTANCE_FETCHER: 'true'
INDEXER_DISABLE_BLOCK_REWARD_FETCHER: 'true'
INDEXER_DISABLE_TOKEN_BALANCE_FETCHER: 'true'
INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER: 'true'
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: 'true'
INDEXER_DISABLE_CATALOGED_TOKEN_UPDATER_FETCHER: 'true'
INDEXER_DISABLE_EMPTY_BLOCKS_SANITIZER: 'true'
INDEXER_RECEIPTS_BATCH_SIZE: '5'
INDEXER_RECEIPTS_CONCURRENCY: '1'
INDEXER_BLOCK_FETCHER_INIT_QUEUE_SIZE: '5'
INDEXER_CATCHUP_BLOCK_INTERVAL: '15s'
INDEXER_CATCHUP_BLOCKS_BATCH_SIZE: '3'
INDEXER_CATCHUP_BLOCKS_CONCURRENCY: '1'
# Rate-limit-friendly bring-up: only index last ~10K blocks at first.
# Public RPC has 10 POST reqs/min/IP cap (sentrix-rpc::routes::ratelimit
# write_rate_limit_max default), which is too tight for full genesis
# catchup. Operator action item: raise SENTRIX_WRITE_RATE_LIMIT on
# validator nodes (or whitelist vps6 IP) before removing this range.
FIRST_BLOCK: '845000'
TRACE_FIRST_BLOCK: '845000'
DECIMAL: '8'
MICROSERVICE_SC_VERIFIER_ENABLED: 'true'
MICROSERVICE_SC_VERIFIER_URL: http://smart-contract-verifier:8050/
MICROSERVICE_SC_VERIFIER_TYPE: sc_verifier
MICROSERVICE_SIG_PROVIDER_ENABLED: 'true'
MICROSERVICE_SIG_PROVIDER_URL: http://sig-provider:8050/
API_V2_ENABLED: 'true'
ACCOUNT_ENABLED: 'false'
DISPLAY_TOKEN_ICONS: 'true'
smart-contract-verifier:
extends:
file: ../src/docker-compose/services/smart-contract-verifier.yml
service: smart-contract-verifier
sig-provider:
extends:
file: ../src/docker-compose/services/sig-provider.yml
service: sig-provider
frontend:
depends_on:
- backend
extends:
file: ../src/docker-compose/services/frontend.yml
service: frontend
ports:
- 127.0.0.1:3000:3000
environment:
NEXT_PUBLIC_FOOTER_LINKS: '[{"title":"Sentrix Chain","links":[{"text":"Website","url":"https://sentrixchain.com"},{"text":"GitHub","url":"https://github.com/sentrix-labs/sentrix"},{"text":"Custom Scan","url":"https://scan.sentrixchain.com"}]}]'
NEXT_PUBLIC_NETWORK_NAME: Sentrix
NEXT_PUBLIC_NETWORK_SHORT_NAME: Sentrix
NEXT_PUBLIC_NETWORK_ID: 7119
NEXT_PUBLIC_NETWORK_RPC_URL: https://rpc.sentrixchain.com
NEXT_PUBLIC_NETWORK_CURRENCY_NAME: Sentrix
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL: SRX
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS: 8
NEXT_PUBLIC_API_HOST: blockscout.sentrixchain.com
NEXT_PUBLIC_API_PROTOCOL: https
NEXT_PUBLIC_API_BASE_PATH: /
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL: wss
NEXT_PUBLIC_APP_HOST: blockscout.sentrixchain.com
NEXT_PUBLIC_APP_PROTOCOL: https
NEXT_PUBLIC_HOMEPAGE_CHARTS: '["daily_txs"]'
NEXT_PUBLIC_IS_TESTNET: 'false'
NEXT_PUBLIC_VISUALIZE_API_HOST: ''
NEXT_PUBLIC_STATS_API_HOST: ''
NEXT_PUBLIC_AD_BANNER_PROVIDER: none
NEXT_PUBLIC_AD_TEXT_PROVIDER: none
FAVICON_GENERATOR_API_KEY: ''
# Note: nginx proxy removed — Caddy on host routes /api*+/socket → backend:4000,
# /* → frontend:3000 directly. Avoids nginx config upstream-name dependencies
# on services we don't run (stats, etc.).