28 lines
548 B
Plaintext
28 lines
548 B
Plaintext
[Unit]
|
|
Description=Defguard - DB
|
|
|
|
[Container]
|
|
Pod=defguard.pod
|
|
ContainerName=defguard-db
|
|
Image=docker.io/postgres:17-alpine
|
|
|
|
EnvironmentFile=/mnt/data/containers/defguard/.env
|
|
|
|
Volume=/mnt/data/containers/defguard/postgresql:/var/lib/postgresql/data
|
|
Volume=/etc/timezone:/etc/timezone:ro
|
|
Volume=/etc/localtime:/etc/localtime:ro
|
|
|
|
# health check
|
|
HealthCmd=pg_isready -U defguarduser -d defguard
|
|
HealthInterval=5s
|
|
HealthRetries=3
|
|
HealthStartPeriod=15s
|
|
HealthTimeout=30s
|
|
|
|
[Service]
|
|
Restart=always
|
|
TimeoutStartSec=300
|
|
|
|
[Install]
|
|
WantedBy=default.target
|