# Quadlet unit: Gitea web server (rootless, boot-persistent). # # Install path on dankclaw: ~/.config/containers/systemd/gitea-server.container # Unit name: gitea-server.service (podman 5.x drops the container- prefix) # # The [Service] EnvironmentFile= line lets systemd expand # ${GITEA_DB_PASSWORD} in the generated ExecStart. # The DB password lives in /home/dank/Containers/gitea/env on the host (mode 0600). # This file holds no secrets. See serverAppConfigs-docs/Dankclaw/Gitea.md. # # Ports (live): 3000 = HTTP UI/API, 2222 = git SSH. The docs table in # Dankclaw Stack.md historically said 3001; the live host port is 3000. [Unit] Description=Gitea web server container Wants=gitea-postgres.service After=gitea-postgres.service network.target [Container] ContainerName=gitea-server Network=gitea.network Image=docker.io/gitea/gitea:latest EnvironmentFile=/home/dank/Containers/gitea/env Environment=DATABASE_TYPE=postgres Environment=DATABASE_HOST=gitea-postgres Environment=DATABASE_NAME=gitea Environment=DATABASE_USER=gitea Environment=DATABASE_PASSWD=${GITEA_DB_PASSWORD} Environment=DATABASE_PORT=5432 Environment=USER_UID=1000 Environment=USER_GID=1000 PublishPort=0.0.0.0:3000:3000 PublishPort=2222:22 Volume=/home/dank/Containers/gitea/data:/data Volume=/etc/timezone:/etc/timezone:ro Volume=/etc/localtime:/etc/localtime:ro [Service] EnvironmentFile=/home/dank/Containers/gitea/env TimeoutStartSec=900 Restart=always [Install] WantedBy=default.target