-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtestnet-external-node.yml
More file actions
76 lines (74 loc) · 2.65 KB
/
testnet-external-node.yml
File metadata and controls
76 lines (74 loc) · 2.65 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
version: "3.2"
services:
postgres:
image: "postgres:14"
command: >
postgres
-c max_connections=200
-c log_error_verbosity=terse
-c shared_buffers=2GB
-c effective_cache_size=4GB
-c maintenance_work_mem=1GB
-c checkpoint_completion_target=0.9
-c random_page_cost=1.1
-c effective_io_concurrency=200
-c min_wal_size=4GB
-c max_wal_size=16GB
-c max_worker_processes=16
-c checkpoint_timeout=1800
expose:
- 5430
volumes:
- testnet-postgres:/var/lib/postgresql/data
healthcheck:
interval: 1s
timeout: 3s
test:
[
"CMD-SHELL",
'psql -U postgres -c "select exists (select * from pg_stat_activity where datname = ''{{ database_name }}'' and application_name = ''pg_restore'')" | grep -e ".f$$"',
]
environment:
- POSTGRES_PASSWORD=notsecurepassword
- PGPORT=5430
external-node:
image: "matterlabs/external-node:v29.1.2"
command: ["--components=all,da_fetcher"]
depends_on:
postgres:
condition: service_healthy
ports:
- "127.0.0.1:3060:3060"
- "127.0.0.1:3061:3061"
- "127.0.0.1:3081:3081"
volumes:
- testnet-rocksdb:/db
expose:
- 3322
environment:
DATABASE_URL: "postgres://postgres:notsecurepassword@postgres:5430/zksync_local_ext_node"
DATABASE_POOL_SIZE: 10
EN_HTTP_PORT: 3060
EN_WS_PORT: 3061
EN_HEALTHCHECK_PORT: 3081
EN_PROMETHEUS_PORT: 3322
EN_ETH_CLIENT_URL: https://ethereum-sepolia-rpc.publicnode.com
EN_MAIN_NODE_URL: https://rpc.testnet.lens.dev
EN_L1_CHAIN_ID: 11155111
EN_L2_CHAIN_ID: 37111
EN_L1_BATCH_COMMIT_DATA_GENERATOR_MODE: "Validium"
EN_STATE_CACHE_PATH: "./db/ext-node/state_keeper"
EN_MERKLE_TREE_PATH: "./db/ext-node/lightweight"
EN_SNAPSHOTS_RECOVERY_ENABLED: "false"
RUST_LOG: "warn,zksync=info,zksync_core::metadata_calculator=info,zksync_state=info,zksync_utils=info,zksync_web3_decl::client=error"
EN_DA_CLIENT: "Avail"
EN_DA_AVAIL_CLIENT_TYPE: "FullClient"
EN_DA_BRIDGE_API_URL: "https://turing-bridge-api.avail.so"
EN_DA_TIMEOUT_MS: "20000"
EN_DA_API_NODE_URL: "wss://turing-rpc.avail.so/ws"
EN_DA_APP_ID: "247"
#This is a randomly generated seed phrase, it is just needed to initialize a client that will verify your blobs, no transactions will be send from that account, so it is ok if it is freshly created and has no balance.
EN_DA_SECRETS_SEED_PHRASE: "acquire side muscle outdoor genre screen pen achieve venue royal display march"
volumes:
testnet-postgres: {}
testnet-rocksdb: {}