-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (65 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
67 lines (65 loc) · 1.81 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
name: nexus
services:
reth:
image: ${RETH_IMAGE:?missing in .env}
container_name: nexus-reth
restart: unless-stopped
network_mode: host
stop_grace_period: 30s
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
volumes:
- ${DATA_BASE:?missing in .env}/reth-data:/data
- ${DATA_BASE}/config/evm:/evm-config:ro
- ${DATA_BASE}/jwt:/jwt:ro
command:
- node
- --datadir=/data
- --chain=/evm-config/genesis.json
- --nexus-config=/evm-config/nexus-config.evm.yaml
- --authrpc.jwtsecret=/jwt/jwt.hex
- --authrpc.addr=127.0.0.1
- --authrpc.port=8551
- --http
- --http.addr=0.0.0.0
- --http.port=8545
- --http.corsdomain=*
- --http.api=eth,net,web3,debug,txpool
- --ws
- --ws.addr=0.0.0.0
- --ws.port=8546
- --ws.origins=*
- --ws.api=eth,net,web3,debug,txpool
- --trusted-peers=${TRUSTED_PEERS:?missing in .env}
- --metrics=0.0.0.0:9001
- --txpool.lifetime=30s
- --txpool.disable-transactions-backup
- --txpool.nolocals
- --engine.persistence-threshold=0
- --engine.memory-block-buffer-target=0
- --full
cosmos:
image: ${COSMOS_IMAGE:?missing in .env}
container_name: nexus-cosmos
restart: unless-stopped
depends_on: [reth]
network_mode: host
stop_grace_period: 30s
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
volumes:
- ${DATA_BASE}/cosmos-home:/cosmos-home
- ${DATA_BASE}/jwt:/jwt:ro
environment:
EVM_ENGINE_JWT_SECRET_PATH: /jwt/jwt.hex
EVM_ENGINE_URL: http://127.0.0.1:8551
NEXUS_CONFIG_PATH: /cosmos-home/config/nexus-config.cosmos.yaml
command:
- --home
- /cosmos-home