home-pods/container-proxy.service

28 lines
894 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
TimeoutStopSec=70
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 \
2022-08-21 10:59:37 +02:00
-v /home/pi/containers/proxy/data:/data:Z \
-v /home/pi/containers/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" \
docker.io/jc21/nginx-proxy-manager:latest
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