Files
quadlets/mattermost-db.container
2026-05-13 09:21:46 -07:00

22 lines
590 B
INI

[Unit]
Description=Mattermost Postgres Database
[Container]
ContainerName=mattermost-db
Image=gitea.iot.cudanet.org/administrator/quadlets/postgres:15-alpine
Environment=POSTGRES_USER=mmuser
Environment=POSTGRES_PASSWORD=mmuser_password
Environment=POSTGRES_DB=mattermost
Volume=/var/podman/mattermost/db:/var/lib/postgresql/data:Z
Network=mattermost.network
# This helps with SELinux/Permissions on some RPi distros
SecurityLabelDisable=true
[Service]
Restart=always
# Slow down the restart loop so it doesn't hit the throttle as fast
RestartSec=5s
[Install]
WantedBy=multi-user.target