-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontainer-reth.service
50 lines (45 loc) · 1.56 KB
/
container-reth.service
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
[Unit]
Description=Podman container-reth.service
Documentation=man:podman-generate-systemd(1)
Wants=container-rootless-cni-infra.service
After=container-rootless-cni-infra.service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
# Clean up any old container instances before starting a new one
ExecStartPre=/bin/rm -f %t/container-reth.pid %t/container-reth.ctr-id
ExecStart=/usr/bin/podman run \
--conmon-pidfile %t/container-reth.pid \
--cidfile %t/container-reth.ctr-id \
--cgroups=no-conmon \
--replace \
-v rethdata:/root/.local/share/reth/mainnet \
-v rethlogs:/root/logs \
-v jwt-volume:/root/jwt:ro \
-p 9011:9011 \
-p 30303:30303 \
-p 30303:30303/udp \
-p 8545:8545 \
-p 8551:8551 \
--pid=host \
--name reth \
--network ethnetwork \
-d ghcr.io/paradigmxyz/reth node \
--full \
--chain=mainnet \
--metrics 0.0.0.0:9011 \
--log.file.directory /root/logs \
--authrpc.addr 0.0.0.0 \
--authrpc.port 8551 \
--authrpc.jwtsecret /root/jwt/jwt.hex \
--http \
--http.addr 0.0.0.0 \
--http.port 8545 \
--http.api eth,net,web3
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/container-reth.ctr-id -t 10
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/container-reth.ctr-id
PIDFile=%t/container-reth.pid
Type=forking
[Install]
WantedBy=multi-user.target