forked from mixbytes/protocol-v2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.neon.yml
213 lines (204 loc) · 6.2 KB
/
docker-compose.neon.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
version: "3"
services:
solana:
container_name: solana
image: neonlabsorg/evm_loader:ci-more-accounts-128
environment:
SOLANA_URL: http://solana:8899
RUST_LOG: solana_runtime::system_instruction_processor=trace,solana_runtime::message_processor=debug,solana_bpf_loader=debug,solana_rbpf=debug
hostname: solana
expose:
- "8899"
- "9900"
- "8900"
- "8001"
- "8001-8009/udp"
networks:
- net
healthcheck:
# Must be available from outside (calling without -u causes premature result)
test: [ CMD-SHELL, "./wait-for-neon.sh" ]
interval: 5s
timeout: 5s
retries: 20
start_period: 5s
entrypoint: /opt/solana/bin/solana-run-neon.sh
postgres:
container_name: postgres
image: postgres:14.0
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:latest
environment:
SOLANA_URL: http://solana:8899
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:latest
environment:
SOLANA_URL: http://solana:8899
FAUCET_URL: http://faucet:3333
POSTGRES_DB: neon-db
POSTGRES_USER: neon-proxy
POSTGRES_PASSWORD: neon-proxy-pass
LOG_NEON_CLI_DEBUG: "YES"
FUZZING_BLOCKHASH: "YES"
CONFIG: ci
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
MINIMAL_GAS_PRICE: 1
ENABLE_PRIVATE_API: "YES"
ALLOW_UNDERPRICED_TX_WITHOUT_CHAINID: "YES"
LOG_FULL_OBJECT_INFO: "YES"
NEON_CLI_TIMEOUT: 10
EVM_LOADER: 53DfF883gyixYNXnM7s5xhdeyV8mVk9T4i2hGV9vG9io
hostname: proxy
depends_on:
solana:
condition: service_healthy
dbcreation:
condition: service_completed_successfully
ports:
- 9090:9090
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
deploy_contracts:
container_name: deploy_contracts
image: neonlabsorg/evm_loader:ci-more-accounts-128
environment:
- SOLANA_URL=http://solana:8899
- SPL_TOKEN_AUTHORITY=/opt/contracts/ci-tokens/owner-keypair.json
networks:
- net
depends_on:
proxy:
condition: service_healthy
command: bash -c "create-test-accounts.sh 1 && deploy-contracts.sh"
faucet:
container_name: faucet
image: neonlabsorg/faucet:latest
environment:
FAUCET_RPC_BIND: 0.0.0.0
FAUCET_RPC_PORT: 3333
FAUCET_RPC_ALLOWED_ORIGINS: '["http://airdropper"]'
FAUCET_WEB3_ENABLE: 'true'
WEB3_RPC_URL: http://solana:8899
WEB3_PRIVATE_KEY: 0x4deacb079b4714c38f39508aa8900039f2721ed8686835d43347ba9267da767b
NEON_ERC20_TOKENS: '["0xB521b9F3484deF53545F276F1DAA50ef0Ca82E2d", "0x8a2a66CA0E5D491A001957edD45A6350bC76D708", "0x914782059DC42d4E590aeFCfdbF004B2EcBB9fAA", "0x7A7510b9b18241C788a7aAE8299D1fA6010D8128"]'
NEON_ERC20_MAX_AMOUNT: 1000
FAUCET_SOLANA_ENABLE: 'true'
SOLANA_URL: http://solana:8899
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
hostname: faucet
ports:
- 3333:3333
expose:
- "3333"
networks:
- net
entrypoint: ./run-test-faucet.sh
depends_on:
solana:
condition: service_healthy
deploy_contracts:
condition: service_completed_successfully
airdropper:
container_name: airdropper
image: neonlabsorg/proxy:latest
environment:
POSTGRES_DB: neon-db
POSTGRES_USER: neon-proxy
POSTGRES_PASSWORD: neon-proxy-pass
POSTGRES_HOST: postgres
SOLANA_URL: http://solana:8899
FAUCET_URL: http://faucet:3333
NEON_CLI_TIMEOUT: 0.9
INDEXER_ERC20_WRAPPER_WHITELIST: ANY
PRICE_UPDATE_INTERVAL: 10
START_SLOT: LATEST
PP_SOLANA_URL: ${PP_SOLANA_URL:-https://api.devnet.solana.com}
PYTH_MAPPING_ACCOUNT: ${CI_PYTH_MAPPING_ACCOUNT:-BmA9Z6FjioHJPpjT39QazZyhDRUdZy2ezwx4GiDdE2u2}
MAX_CONFIDENCE_INTERVAL: 0.01
hostname: airdropper
entrypoint: ./run-airdropper.sh
networks:
- net
depends_on:
solana:
condition: service_healthy
dbcreation:
condition: service_completed_successfully
faucet:
condition: service_started
indexer:
container_name: indexer
image: neonlabsorg/proxy:latest
environment:
SOLANA_URL: http://solana:8899
POSTGRES_DB: neon-db
POSTGRES_USER: neon-proxy
POSTGRES_PASSWORD: neon-proxy-pass
POSTGRES_HOST: postgres
GATHER_STATISTICS: "YES"
LOG_FULL_OBJECT_INFO: "NO"
CONFIG: ci
EVM_LOADER: 53DfF883gyixYNXnM7s5xhdeyV8mVk9T4i2hGV9vG9io
hostname: indexer
depends_on:
solana:
condition: service_healthy
dbcreation:
condition: service_completed_successfully
expose:
- "8887"
networks:
- net
entrypoint: proxy/run-indexer.sh
networks:
net: