home-pods/container-vaultwarden-serve...

26 lines
767 B
SYSTEMD

[Unit]
Description=Podman container-vaultwarden-server.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/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="vaultwarden-server" \
-v vaultwarden-server:/data/:Z \
-p 8485:80 \
-e TZ=Europe/Brussels \
--label "io.containers.autoupdate=registry" \
docker.io/vaultwarden/server: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]
WantedBy=default.target