Collection of cookbooks for Podman Quadlets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

49 lines
1.3 KiB

[Unit]
Description=Matrix Element Web Client
Documentation=https://element.io/
After=local-fs.target network.target
Before=matrix.target
# Only start if Element Web client has been configured
ConditionPathExists=/etc/quadlets/matrix/element-web/config.json
ConditionPathExists=/etc/quadlets/matrix/element-web.env
PartOf=matrix.target
[Container]
ContainerName=matrix-web
Image=matrix-web.image
AutoUpdate=registry
# Network
Network=host
# Source configuration into environment variables for the container
EnvironmentFile=/etc/quadlets/matrix/element-web.env
# Config file (must exist before starting)
Volume=/etc/quadlets/matrix/element-web/config.json:/app/config.json:z,ro
Volume=/etc/quadlets/matrix/element-web/nginx-default.conf.template:/etc/nginx/templates/default.conf.template:z,ro
# UID/GID mapping to map the nginx (101) user & group inside the container to arbitrary user 10031 / group 10000 on the host
UIDMap=0:1000000:65535
UIDMap=+101:10031:1
GIDMap=0:1000000:65535
GIDMap=+101:10000:1
# Health check
HealthCmd=wget -q -O /dev/null http://127.0.0.1:${ELEMENT_WEB_PORT}/
HealthInterval=30s
HealthTimeout=10s
HealthStartPeriod=30s
HealthRetries=3
[Service]
Restart=always
RestartSec=10
TimeoutStartSec=120
TimeoutStopSec=30
EnvironmentFile=/etc/quadlets/matrix/element-web.env
[Install]
WantedBy=matrix.target