home-pods/container-proxy.service

29 lines
879 B
SYSTEMD

[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
TimeoutStartSec=50min
TimeoutStopSec=50min
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 \
-v proxy-data:/data:Z \
-v proxy-letsencrypt:/etc/letsencrypt:Z \
--ip=10.88.0.17 \
-p 80:80 -p 443:443 -p 81:81 -p 8448:8448 \
--label "io.containers.autoupdate=registry" \
docker.io/jc21/nginx-proxy-manager:2.9.22
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]
WantedBy=default.target