-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontainer-lighthouse.service
48 lines (43 loc) · 1.59 KB
/
container-lighthouse.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
[Unit]
Description=Podman container-lighthouse.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-lighthouse.pid %t/container-lighthouse.ctr-id
ExecStart=/usr/bin/podman run \
--conmon-pidfile %t/container-lighthouse.pid \
--cidfile %t/container-lighthouse.ctr-id \
--cgroups=no-conmon \
--replace \
-v lighthousedata:/root/.lighthouse \
-v jwt-volume:/root/jwt:ro \
-p 5052:5052/tcp \
-p 5053:5053/tcp \
-p 5054:5054/tcp \
-p 9000:9000/tcp \
-p 9000:9000/udp \
-p 9001:9001/udp \
--name lighthouse \
--network ethnetwork \
-d docker.io/sigp/lighthouse:v6.0.1 \
lighthouse bn \
--network mainnet \
--http \
--http-address 0.0.0.0 \
--execution-endpoint http://reth:8551 \
--metrics \
--metrics-address 0.0.0.0 \
--execution-jwt /root/jwt/jwt.hex \
--log-color \
--checkpoint-sync-url https://mainnet.checkpoint.sigp.io
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/container-lighthouse.ctr-id -t 10
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/container-lighthouse.ctr-id
PIDFile=%t/container-lighthouse.pid
Type=forking
[Install]
WantedBy=multi-user.target