# vim: ft=systemd
[Container]
Image=docker.io/postgres:{{ forgejo_postgres_version }}-alpine
Pod=forgejo.pod

Environment=POSTGRES_USER=gitea POSTGRES_PASSWORD=gitea POSTGRES_DB=gitea

HealthCmd=["pg_isready","-U","gitea"]
HealthInterval=30s
HealthRetries=3
HealthStartPeriod=30s
HealthTimeout=5s
Notify=Healthy

Volume={{ forgejo_postgres_dir }}:/var/lib/postgresql/data

[Service]
Restart=always
