roundcube: First draft of role

This commit is contained in:
Timo Makinen 2023-02-04 18:17:42 +00:00
parent 9a988bf637
commit 42cb1c86c9
7 changed files with 118 additions and 0 deletions

View file

@ -0,0 +1,18 @@
[Unit]
Description=Roundcube Container
Wants=network-online.target
After=network-online.target
[Service]
User=roundcube
EnvironmentFile=/etc/sysconfig/roundcube-container
ExecStart=/usr/bin/podman run \
--rm -p 127.0.0.1:8004:80 \
--name roundcube \
--volume=/etc/roundcube:/var/roundcube/config:ro \
--env=ROUNDCUBEMAIL_* docker.io/roundcube/roundcubemail:{{ roundcube_version }}-apache
ExecStop=/usr/bin/podman stop --ignore roundcube
ExecStopPost=/usr/bin/podman rm -f --ignore roundcube
[Install]
WantedBy=multi-user.target