2021-01-13 16:36:50 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Prosody XMPP server
|
2021-08-14 21:31:02 +00:00
|
|
|
Wants=container-build@%N.service container-volume@%N.service mariadb.service dovecot.service
|
|
|
|
After=container-build@%N.service container-volume@%N.service mariadb.service dovecot.service
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Service]
|
2021-08-14 21:28:28 +00:00
|
|
|
Type=notify
|
|
|
|
NotifyAccess=all
|
2021-08-28 18:16:29 +00:00
|
|
|
SyslogIdentifier=%N
|
2021-08-14 21:28:28 +00:00
|
|
|
Restart=on-failure
|
|
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
2021-09-08 17:45:04 +00:00
|
|
|
ExecStart=/bin/podman run --replace --name %N --net internal --sdnotify=conmon \
|
2021-08-14 21:28:28 +00:00
|
|
|
--env-file %E/coreos-home-server/%N/%N.env \
|
2021-03-27 23:03:56 +00:00
|
|
|
--publish 5222:5222 --publish 5269:5269 --publish 5347:5347 \
|
2021-06-27 11:52:47 +00:00
|
|
|
--volume %N:/var/lib/%N:z \
|
|
|
|
--volume letsencrypt:/etc/ssl/private:z \
|
2021-08-14 21:28:28 +00:00
|
|
|
--volume %E/coreos-home-server/%N/service/config:/etc/%N/conf.d:z \
|
2021-06-27 11:52:47 +00:00
|
|
|
localhost/%N:latest
|
2021-08-14 21:28:28 +00:00
|
|
|
ExecStop=/bin/podman stop --ignore --time 10 %N
|
|
|
|
ExecStopPost=/bin/podman rm --ignore --force %N
|
2021-09-22 21:48:47 +00:00
|
|
|
ExecReload=/bin/podman exec %N sh -c 'echo "config:reload()" | nc -q 1 -w 10 127.0.0.1 5582'
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|