home-pods/container-proxy.service

29 lines
879 B
SYSTEMD
Raw Normal View History

2022-02-14 18:11:23 +01:00
[Unit]
Description=Podman container-proxy.service
Wants=network-online.target
After=network-online.target
RequiresMountsFor=%t/containers
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
2023-05-21 17:53:15 +02:00
TimeoutStartSec=50min
TimeoutStopSec=50min
2022-02-14 18:11:23 +01:00
ExecStartPre=/bin/mkdir -p /home/pi/containers/proxy
ExecStartPre=/bin/rm -f %t/%n.ctr-id
ExecStart=/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --rm --sdnotify=conmon --replace -d \
--name=proxy \
2023-05-21 17:53:15 +02:00
-v proxy-data:/data:Z \
-v proxy-letsencrypt:/etc/letsencrypt:Z \
2022-02-14 18:11:23 +01:00
--ip=10.88.0.17 \
2022-08-21 10:59:37 +02:00
-p 80:80 -p 443:443 -p 81:81 -p 8448:8448 \
2022-02-14 18:11:23 +01:00
--label "io.containers.autoupdate=registry" \
2023-05-21 17:53:15 +02:00
docker.io/jc21/nginx-proxy-manager:2.9.22
2022-02-14 18:11:23 +01:00
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
Type=notify
NotifyAccess=all
[Install]
2022-08-21 10:59:37 +02:00
WantedBy=default.target