thequad/authentik/authentik-db.container

28 lines
570 B
Plaintext

[Unit]
Description=Authentik - DB
[Container]
Pod=authentik.pod
ContainerName=authentik-db
Image=docker.io/library/postgres:17.2-bookworm
EnvironmentFile=/mnt/data/containers/authentik/authentik-db.env
Volume=/mnt/data/containers/authentik/postgresql:/var/lib/postgresql/data
Volume=/etc/timezone:/etc/timezone:ro
Volume=/etc/localtime:/etc/localtime:ro
# health check
HealthCmd=pg_isready -U pguser -d general
HealthInterval=5s
HealthRetries=3
HealthStartPeriod=15s
HealthTimeout=30s
[Service]
Restart=always
TimeoutStartSec=300
[Install]
WantedBy=default.target