All in-repo path references (AGENTS.md, README, old scripts, report artifacts,
test code paths) rewritten in the same commit; focused-test map extended for
.gitignore, old/scripts/*, dankclaw/comfyui/*, and report/* per this repo's
own convention ('add one before committing'). Obsidian wikilinks are
title-based and unaffected.
45 lines
1.4 KiB
INI
45 lines
1.4 KiB
INI
# 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 /opt/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=/opt/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=/opt/gitea/data/gitea-gitea:/data
|
|
Volume=/etc/timezone:/etc/timezone:ro
|
|
Volume=/etc/localtime:/etc/localtime:ro
|
|
|
|
[Service]
|
|
EnvironmentFile=/opt/gitea/.env
|
|
TimeoutStartSec=900
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=default.target
|