2021-01-13 16:36:50 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Prosody XMPP server
|
2021-06-27 11:52:47 +00:00
|
|
|
Wants=container-build@%N.service mariadb.service dovecot.service
|
|
|
|
After=container-build@%N.service mariadb.service dovecot.service
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=always
|
2021-06-27 11:52:47 +00:00
|
|
|
ExecStart=/bin/podman run --replace --pull never --name %N --net internal \
|
|
|
|
--env-file /etc/container-service/%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 \
|
|
|
|
--volume /etc/container-service/%N/service/config:/etc/%N/conf.d:z \
|
|
|
|
localhost/%N:latest
|
2021-01-13 16:36:50 +00:00
|
|
|
ExecStop=/bin/podman stop --time 10 %N
|
2021-03-27 23:03:56 +00:00
|
|
|
ExecStopPost=/bin/podman rm --force %N
|
2021-07-24 14:55:37 +00:00
|
|
|
ExecReload=/bin/podman exec %N prosodyctl reload
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|