33 lines
598 B
Plaintext
33 lines
598 B
Plaintext
[Unit]
|
|
Description=Photoview - DB
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
|
|
[Container]
|
|
ContainerName=photoview-db
|
|
Pod=photoview.pod
|
|
Image=docker.io/mariadb:lts
|
|
AutoUpdate=registry
|
|
|
|
# Persistent volumes
|
|
Volume=/mnt/data/containers/photoview/db:/var/lib/mysql
|
|
|
|
# Environment variables
|
|
EnvironmentFile=/mnt/data/containers/photoview/.env.photoview-db
|
|
|
|
# Health monitoring
|
|
HealthCmd=healthcheck.sh --connect
|
|
HealthInterval=30s
|
|
HealthTimeout=15s
|
|
HealthRetries=10
|
|
HealthStartPeriod=15s
|
|
|
|
# Other
|
|
UserNS=keep-id:uid=999,gid=999
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
StartLimitBurst=5
|
|
|