Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
175 lines (169 loc) Β· 5.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
175 lines (169 loc) Β· 5.1 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
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
x-logging: &logging
logging:
options:
max-size: 10m
max-file: "3"
services:
reth_execution_engine:
image: us-docker.pkg.dev/evmchain/images/alethia-reth:v1.4.1
restart: unless-stopped
pull_policy: always
stop_grace_period: 3m
environment:
- RUST_LOG_STYLE=never
volumes:
- ${L2_RETH_DATA_DIR:-l2_execution_engine_data}:/data/alethia-reth
networks:
default:
aliases:
- l2_execution_engine
ports:
- "${PORT_L2_EXECUTION_ENGINE_METRICS}:6060"
- "${PORT_L2_EXECUTION_ENGINE_HTTP}:8545"
- "${PORT_L2_EXECUTION_ENGINE_WS}:8546"
- "${PORT_L2_EXECUTION_ENGINE_DISCOVERY:-9200}:${PORT_L2_EXECUTION_ENGINE_DISCOVERY:-9200}"
- "${PORT_L2_EXECUTION_ENGINE_DISCOVERY:-9200}:${PORT_L2_EXECUTION_ENGINE_DISCOVERY:-9200}/udp"
entrypoint:
- /bin/sh
- -c
- |
set -eu
if [ ! -f /data/alethia-reth/jwtsecret ]; then
mkdir -p /data/alethia-reth
tr -dc 'a-f0-9' < /dev/urandom | head -c 64 > /data/alethia-reth/jwtsecret
fi
exec ./alethia-reth node \
--http \
--http.addr 0.0.0.0 \
--http.api eth,net,debug,trace,rpc \
--ws \
--ws.addr 0.0.0.0 \
--chain mainnet \
--datadir /data/alethia-reth \
--log.file.directory /data/alethia-reth/logs \
--metrics 0.0.0.0:6060 \
--color never \
--enable-discv5-discovery \
--engine.persistence-threshold 128 \
--engine.memory-block-buffer-target 128 \
--rpc.eth-proof-window 1209600 \
--authrpc.addr 0.0.0.0 \
--authrpc.jwtsecret /data/alethia-reth/jwtsecret \
--ipcpath /data/alethia-reth/reth.ipc \
--bootnodes "${BOOT_NODES}"
<<: *logging
profiles:
- reth_execution_engine
geth_execution_engine:
image: us-docker.pkg.dev/evmchain/images/taiko-geth:v2.8.0
restart: unless-stopped
pull_policy: always
env_file:
- .env
stop_grace_period: 3m
volumes:
- l2_execution_engine_data:/data/taiko-geth
networks:
default:
aliases:
- l2_execution_engine
ports:
- "${PORT_L2_EXECUTION_ENGINE_METRICS}:6060"
- "${PORT_L2_EXECUTION_ENGINE_HTTP}:8545"
- "${PORT_L2_EXECUTION_ENGINE_WS}:8546"
- "${PORT_L2_EXECUTION_ENGINE_P2P}:${PORT_L2_EXECUTION_ENGINE_P2P}"
- "${PORT_L2_EXECUTION_ENGINE_P2P}:${PORT_L2_EXECUTION_ENGINE_P2P}/udp"
command: |
--taiko
--networkid "${CHAIN_ID}"
--gcmode archive
--syncmode full
--datadir /data/taiko-geth
--metrics
--metrics.expensive
--metrics.addr "0.0.0.0"
--bootnodes ${BOOT_NODES}
--authrpc.addr "0.0.0.0"
--authrpc.vhosts "*"
--http
--http.api debug,eth,net,web3,txpool,taiko
--http.addr "0.0.0.0"
--http.vhosts "*"
--ws
--ws.api debug,eth,net,web3,txpool,taiko
--ws.addr "0.0.0.0"
--ws.origins "*"
--gpo.ignoreprice "25000000"
--port ${PORT_L2_EXECUTION_ENGINE_P2P}
--discovery.port ${PORT_L2_EXECUTION_ENGINE_P2P}
--maxpeers ${MAXPEERS:-50}
--maxpendpeers ${MAXPENDPEERS:-0}
${GETH_ADDITIONAL_ARGS:-}
<<: *logging
profiles:
- geth_execution_engine
taiko_client_driver:
image: us-docker.pkg.dev/evmchain/images/taiko-client:taiko-alethia-client-v2.8.0
restart: unless-stopped
pull_policy: always
ports:
- "${P2P_TCP_PORT}:${P2P_TCP_PORT}/tcp"
- "${P2P_UDP_PORT}:${P2P_UDP_PORT}/udp"
env_file:
- .env
volumes:
- ${L2_RETH_DATA_DIR:-l2_execution_engine_data}:/data/alethia-reth
- l2_execution_engine_data:/data/taiko-geth
- private_key_data:/data/private-key
- ./script:/script
entrypoint:
- /bin/sh
- -c
- "/script/start-driver.sh"
<<: *logging
profiles:
- geth_execution_engine
- reth_execution_engine
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
ports:
- ${PORT_PROMETHEUS}:9090
depends_on:
- taiko_client_driver
volumes:
- ./docker/prometheus/l2:/etc/prometheus
- prometheus_data:/prometheus
command:
- --log.level=debug
- --config.file=/etc/prometheus/prometheus.yml
<<: *logging
profiles:
- geth_execution_engine
- reth_execution_engine
grafana:
image: grafana/grafana:latest
restart: unless-stopped
ports:
- ${PORT_GRAFANA}:3000
depends_on:
- taiko_client_driver
- prometheus
environment:
- GF_PATHS_CONFIG=/etc/grafana/custom/settings.ini
- GF_PATHS_PROVISIONING=/etc/grafana/custom/provisioning
- GF_LOG_LEVEL=WARN
volumes:
- ./docker/grafana/custom/settings.ini:/etc/grafana/custom/settings.ini
- ./docker/grafana/custom/l2/provisioning/:/etc/grafana/custom/provisioning/
- grafana_data:/var/lib/grafana
<<: *logging
profiles:
- geth_execution_engine
- reth_execution_engine
volumes:
l2_execution_engine_data:
l2_reth_execution_engine_data:
private_key_data:
prometheus_data:
grafana_data: