30 lines
998 B
SYSTEMD
30 lines
998 B
SYSTEMD
|
[Unit]
|
||
|
Description=Podman container-dendrite-monolith.service
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
RequiresMountsFor=%t/containers
|
||
|
BindsTo=pod-dendrite.service
|
||
|
After=pod-dendrite.service
|
||
|
Requires=container-dendrite-postgres.service
|
||
|
After=container-dendrite-postgres.service
|
||
|
|
||
|
[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 \
|
||
|
--pod-id-file %t/pod-dendrite.pod-id --sdnotify=conmon --replace -d \
|
||
|
--name=dendrite-monolith \
|
||
|
-v dendrite:/etc/dendrite:Z \
|
||
|
-v dendrite-media:/var/dendrite/media:Z \
|
||
|
--label "io.containers.autoupdate=registry" \
|
||
|
docker.io/matrixdotorg/dendrite-monolith:latest --tls-cert=server.crt --tls-key=server.key
|
||
|
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
|