# Quadlet unit: Gitea PostgreSQL (rootless, boot-persistent). # # Install path on dankclaw: ~/.config/containers/systemd/gitea-postgres.container # Unit name: gitea-postgres.service (podman 5.x drops the container- prefix) # # The DB password lives in /opt/gitea/.env on the host (mode 0600). # This file holds no secrets. See serverAppConfigs-docs/Dankclaw/Gitea.md. # The [Service] EnvironmentFile= line lets systemd expand # ${GITEA_DB_PASSWORD} in the generated ExecStart. [Unit] Description=Gitea PostgreSQL container After=network.target [Container] ContainerName=gitea-postgres Network=gitea.network Image=docker.io/library/postgres:16-alpine EnvironmentFile=/opt/gitea/.env Environment=POSTGRES_USER=gitea Environment=POSTGRES_PASSWORD=${GITEA_DB_PASSWORD} Environment=POSTGRES_DB=gitea Volume=/opt/gitea/data/gitea-postgres:/var/lib/postgresql/data [Service] EnvironmentFile=/opt/gitea/.env TimeoutStartSec=900 Restart=always [Install] WantedBy=default.target