forked from neonevm/proxy-model.py
/
docker-compose-remote-solana.yml
180 lines (172 loc) · 5.25 KB
/
docker-compose-remote-solana.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
version: "3"
services:
postgres:
container_name: postgres
image: postgres:15.3
command: postgres -c 'max_connections=1000'
environment:
POSTGRES_DB: neon-db
POSTGRES_USER: neon-proxy
POSTGRES_PASSWORD: neon-proxy-pass
hostname: postgres
healthcheck:
test: [ CMD-SHELL, "pg_isready -h postgres -p 5432" ]
interval: 3s
timeout: 3s
retries: 10
start_period: 5s
expose:
- "5432"
ports:
- "5432"
networks:
- net
dbcreation:
container_name: dbcreation
image: neonlabsorg/proxy:${REVISION}
environment:
SOLANA_URL: ${SOLANA_URL}
POSTGRES_DB: neon-db
POSTGRES_USER: neon-proxy
POSTGRES_PASSWORD: neon-proxy-pass
POSTGRES_HOST: postgres
entrypoint: /bin/sh
command: proxy/run-dbcreation.sh
networks:
- net
depends_on:
postgres:
condition: service_healthy
proxy:
container_name: proxy
image: neonlabsorg/proxy:${REVISION}
environment:
SOLANA_URL: ${SOLANA_URL}
FAUCET_URL: http://faucet:3333
PROXY_URL: http://proxy:9090/solana
POSTGRES_DB: neon-db
POSTGRES_USER: neon-proxy
POSTGRES_PASSWORD: neon-proxy-pass
POSTGRES_HOST: postgres
NEON_CLI_DEBUG_LOG: "YES"
FUZZ_FAIL_PCT: 0
GATHER_STATISTICS: "YES"
CONFIG: ci
# Comment next two lines, if you want local stand without real gas-price
PP_SOLANA_URL: ${CI_PP_SOLANA_URL:-https://api.devnet.solana.com}
PYTH_MAPPING_ACCOUNT: ${CI_PYTH_MAPPING_ACCOUNT:-BmA9Z6FjioHJPpjT39QazZyhDRUdZy2ezwx4GiDdE2u2}
#
MIN_OPERATOR_BALANCE_TO_WARN: 4565760000 # = 913152000 * 5 (5 storage accounts) = 4.56576 SOL
MIN_OPERATOR_BALANCE_TO_ERR: 913152000 # = solana rent 131072 (= Rent-exempt minimum: 0.913152 SOL) SOLs to create a storage
# Set to 0 + Comment PYTH configuration above, if you want 0 gas-price
MINIMAL_GAS_PRICE: 1
CONST_GAS_PRICE: 2
#
ENABLE_PRIVATE_API: "NO"
ALLOW_UNDERPRICED_TX_WITHOUT_CHAINID: "YES"
LOG_FULL_OBJECT_INFO: "NO"
EVM_LOADER: 53DfF883gyixYNXnM7s5xhdeyV8mVk9T4i2hGV9vG9io
RUST_BACKTRACE: ${RUST_BACKTRACE:-0}
COMMIT_LEVEL: "Safe"
# An example of HashiCorp configuration, operator key in base64 lies in the secret_key field
# vault kv put -mount=secret neon-proxy/operator-key-2 secret_key=bdSWJ+WwVWdk2XMoxX25monC....A7g+IyA==
# HVAC_URL: http://vault:8200
# HVAC_TOKEN: local-test-hvac-token
# HVAC_MOUNT: secret
# HVAC_PATH: neon-proxy/
#
hostname: proxy
depends_on:
dbcreation:
condition: service_completed_successfully
ports:
- 9090:9090
- 8881:8888
expose:
- "8888"
- "9090"
networks:
- net
entrypoint: proxy/run-test-proxy.sh
healthcheck:
test: [ CMD-SHELL, "/opt/health_check_proxy.sh" ]
interval: 5s
timeout: 3s
retries: 20
start_period: 5s
faucet:
container_name: faucet
image: neonlabsorg/faucet:${FAUCET_COMMIT}
environment:
FAUCET_RPC_BIND: 0.0.0.0
FAUCET_RPC_PORT: 3333
FAUCET_WEB3_ENABLE: 'true'
WEB3_PRIVATE_KEY: 0x4deacb079b4714c38f39508aa8900039f2721ed8686835d43347ba9267da767b
NEON_ERC20_TOKENS: '["0xB521b9F3484deF53545F276F1DAA50ef0Ca82E2d", "0x8a2a66CA0E5D491A001957edD45A6350bC76D708", "0x914782059DC42d4E590aeFCfdbF004B2EcBB9fAA", "0x7A7510b9b18241C788a7aAE8299D1fA6010D8128"]'
NEON_ERC20_MAX_AMOUNT: 1000
FAUCET_SOLANA_ENABLE: 'true'
SOLANA_URL: ${SOLANA_URL}
NEON_OPERATOR_KEYFILE: /root/.config/solana/id.json
NEON_ETH_MAX_AMOUNT: 50000
TEST_FAUCET_INIT_NEON_BALANCE: 100000000
EVM_LOADER: 53DfF883gyixYNXnM7s5xhdeyV8mVk9T4i2hGV9vG9io
NEON_TOKEN_MINT: HPsV9Deocecw3GeZv1FkAPNCBRfuVyfw9MMwjwRe1xaU
NEON_TOKEN_MINT_DECIMALS: 9
SOLANA_COMMITMENT: confirmed
RUST_BACKTRACE: ${RUST_BACKTRACE:-0}
hostname: faucet
ports:
- 3333:3333
expose:
- "3333"
networks:
- net
entrypoint: ./run-test-faucet.sh
gas_tank:
container_name: gas_tank
image: neonlabsorg/proxy:${REVISION}
environment:
POSTGRES_DB: neon-db
POSTGRES_USER: neon-proxy
POSTGRES_PASSWORD: neon-proxy-pass
POSTGRES_HOST: postgres
POSTGRES_TIMEOUT: 15
SOLANA_URL: ${SOLANA_URL}
INDEXER_ERC20_WRAPPER_WHITELIST: ANY
START_SLOT: LATEST
hostname: gas_tank
entrypoint: ./run-gas-tank.sh
networks:
- net
depends_on:
dbcreation:
condition: service_completed_successfully
faucet:
condition: service_started
indexer:
container_name: indexer
image: neonlabsorg/proxy:${REVISION}
environment:
SOLANA_URL: ${SOLANA_URL}
POSTGRES_DB: neon-db
POSTGRES_USER: neon-proxy
POSTGRES_PASSWORD: neon-proxy-pass
POSTGRES_HOST: postgres
POSTGRES_TIMEOUT: 15
GATHER_STATISTICS: "YES"
LOG_FULL_OBJECT_INFO: "NO"
CONFIG: ci
EVM_LOADER: 53DfF883gyixYNXnM7s5xhdeyV8mVk9T4i2hGV9vG9io
hostname: indexer
depends_on:
dbcreation:
condition: service_completed_successfully
expose:
- "8887"
ports:
- 8882:8888
networks:
- net
entrypoint: proxy/run-indexer.sh
networks:
net: