-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (109 loc) · 3.12 KB
/
Copy pathdocker-compose.yml
File metadata and controls
112 lines (109 loc) · 3.12 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
volumes:
l2_ipc:
services:
rise-exec:
container_name: rise-exec
image: public.ecr.aws/risechain/risechain-public/rise-exec/replica:sha-4d4a693
restart: unless-stopped
deploy:
## Resource usage and Limit
# Depend on your system
resources:
limits:
cpus: 10
memory: 100g
reservations:
cpus: 8
memory: 80g
ports:
- "8545:8545" # rpc
- "8546:8546" # ws
- "9001:9001" # metrics
command:
- node
- --chain=/genesis.json
- --datadir=/db
- --http
- --http.api=eth,web3
- --http.addr=0.0.0.0
- --http.port=8545
- --ws
- --ws.api=eth,web3
- --ws.addr=0.0.0.0
- --ws.port=8546
- --authrpc.jwtsecret=/config/jwt.txt
- --auth-ipc
- --auth-ipc.path=/ipc/auth_reth.ipc
- --metrics=0.0.0.0:9001
- --txpool.nolocals
- --txpool.pending_max_count=1000000
- --txpool.pending_max_size=1000000
- --txpool.max-account-slots=18446744073709551615
- --txpool.queued-max-count=2000
- --rpc-max-connections=4294967295
- --rpc.gascap=64000000
- --rpc.eth-proof-window=216000
- --rpc.proof-permits=3
- --rpc.max-request-size=4
- --rpc.max-logs-per-response=5000
- --rpc.max-blocks-per-filter=5000
- --prune.sender-recovery.full
environment:
- RUST_LOG=info
volumes:
- "/mnt/data/l2_data:/db"
- "l2_ipc:/ipc"
- "${CHAIN_CONFIG_DIR}/genesis.json:/genesis.json"
- "./jwt.txt:/config/jwt.txt"
rise-node:
container_name: rise-node
depends_on:
- rise-exec
image: public.ecr.aws/risechain/risechain-public/rise-op-node:sha-ae63731
restart: unless-stopped
deploy:
## Resource usage and Limit
# Depend on your system
resources:
limits:
cpus: 2.5
memory: 12g
reservations:
cpus: 2
memory: 12g
ports:
- "7545:9545" # rpc
- "30003:30003/tcp" # p2p
- "7300:7300" # metrics
command:
- op-node
- --l1=${L1_RPC_URL}
- --l2=/ipc/auth_reth.ipc
- --l2.jwt-secret=/config/jwt.txt
- --rollup.config=/rollup.json
- --rpc.port=7545
- --rpc.enable-admin
- --p2p.priv.path=/config/p2p-node-key.txt
- --p2p.static=${P2P_STATIC}
- --p2p.listen.ip=0.0.0.0
- --p2p.listen.tcp=30003
- --p2p.static.follow-reorg
- --metrics.enabled
- --metrics.addr=0.0.0.0
- --metrics.port=7300
- --safedb.path=/db/safedb_data
- --altda.da-server=${DA_SERVER}
environment:
- OP_NODE_L1_EPOCH_POLL_INTERVAL=12s
- OP_NODE_L1_HTTP_POLL_INTERVAL=6s
- OP_NODE_L1_RPC_MAX_BATCH_SIZE=30
- OP_NODE_L1_MAX_CONCURRENCY=30
- OP_NODE_VERIFIER_L1_CONFS=12
- OP_NODE_ALTDA_MAX_CONCURRENT_DA_REQUESTS=5
- OP_NODE_P2P_GOSSIP_TIMESTAMP_THRESHOLD=45m0s
- OP_NODE_LOG_LEVEL=DEBUG
volumes:
- "/mnt/data/safedb_data:/db/safedb_data"
- "./jwt.txt:/config/jwt.txt"
- "${CHAIN_CONFIG_DIR}/rollup.json:/rollup.json"
- "l2_ipc:/ipc"