Gitea big step 1.27.3 -> 28.2.0 (bench + box + undo proven); repository import only from github.com, codeberg.org, gitlab.com (D57, operator); Gitea fixture commits a file and posts the whole installer form (felhom.eu R-1315)
gates / gates (push) Successful in 21s

This commit is contained in:
admin committed 2026-10-28 21:10:39 +01:00
1 parent 9ef06a7a89
commit 0baf8f9485
7 files changed
+338 -19

No files matched your search

+15
View File
@@ -1,3 +1,18 @@
## 2026-10-28 (evening, attended) — Gitea's big step 1.27.3 → 28.2.0; imports only from GitHub, Codeberg, GitLab (felhom.eu R-1315, D57)
A NORMAL ladder step (1.28 was renamed 28.0.0; no 1.27.4 exists), pushed on the operator's yes at the Gitea STOP. No box
runs Gitea. 28.2.0 fixes the two no-login notices (c3cr, hf55) and the two for signed-in users (7cq7, 6pv5).
- **Proof:** bench `proven` (its abort REFUSES: 1.27.3 will not open a database 28 migrated — „migration version 358 is for a
newer Gitea"); box 9202 `proven` (21 s, soak peak 19 %); **the undo proven on 9202**: 28.2.0 ran migrations 343+,
failed its check, and the box's undo copy put 1.27.3 back with the repository and its commit.
- **Fixture:** the Gitea box fixture now commits one file and reads its text back; its first-run form post sends every
field the page offers (28.x renamed the installer form, and the old fixed list left a fresh 28.2.0 uninstalled).
- **Repository import (D57):** 28's default (`lax`) already refuses home-network and Docker addresses (measured: 422
„You can not import from disallowed hosts"). On the operator's word the template allows imports only from github.com,
codeberg.org and gitlab.com (`[migrations] EGRESS_MODE=strict`, `ALLOWED_HOST_LIST`) — measured on a fresh 28.2.0:
GitHub 201, gitea.com 422, the LAN and Docker addresses 422.
- The sign-up lock (`/user/sign_up`, `DISABLE_REGISTRATION`) is unchanged in 28.2.0 (source). `guide-version` WARNs.
## 2026-10-28 (afternoon, attended) — Seerr's big step: Jellyseerr 2.7.3 → Seerr v3.5.1, a definition step (felhom.eu R-1317)
A NORMAL ladder step whose TO is a whole DEFINITION (the image name, the start command and the user change), pushed on
+8 -9
View File
@@ -1,14 +1,13 @@
# REPORT — 2026-10-28: Seerr's big step, Jellyseerr 2.7.3 → Seerr v3.5.1 (felhom.eu R-1317)
# REPORT — 2026-10-28 (evening): Gitea's big step 1.27.3 → 28.2.0 (felhom.eu R-1315, D57)
**What changed.** A definition step: the new image `ghcr.io/seerr-team/seerr:v3.5.1`, `init: true`, and a start that hands
`/app/config` to UID 1000 and then runs Seerr as `node`. A Seerr fixture that brings a throwaway Jellyfin for the first
sign-in. Pushed on the operator's yes. No box runs Seerr. (Today also: Wanderer `1825247`, Termix `e0b9594` + `589c957`,
Homepage `1a254d4`.)
**What changed.** Gitea 28.2.0 as a normal ladder step; repository import only from GitHub, Codeberg and GitLab (the
operator's word). The Gitea fixture commits a file and posts the installer form as a browser does. Pushed on the
operator's yes. No box runs Gitea.
**Proof.** Bench `proven` (its abort loses the seed: the converted data does not go back to Jellyseerr); box 9202
`proven` (600 s soak); the undo proven on 9202 — the box's undo copy brings the data back. Evidence: felhom.eu
`documentation/audits/dockerhub-bigsteps-2026-10-28/seerr/`.
**Proof.** Bench `proven` (the abort shows 1.27.3 refuses the migrated database); box 9202 `proven`; the undo proven on
9202 (the undo copy brings 1.27.3 and the commit back). Import rules measured on 9202 with and without the allow-list.
Evidence: felhom.eu `documentation/audits/gitea-wanderer-2026-10-28/gitea/`.
**Gates.** `catalog_gates.py --fast seerr`: all OK (guide-version WARN).
**Gates.** `catalog_gates.py --fast gitea`: all OK (guide-version WARN).
Findings go to felhom.eu `OPEN-ITEMS.md` (R-391).
+35 -8
View File
@@ -418,8 +418,6 @@ class Gitea:
to the admin CLI (the old route). Its own REST API (basic auth) then creates a repository and reads it
back. All of these are the app's own interfaces."""
sub = "git"
FORM_DEFAULTS = ("db_path", "app_name", "repo_root_path", "lfs_root_path", "run_user", "domain",
"ssh_port", "http_port", "app_url", "log_root_path")
def seed(self, w, sub, say):
if not w.wait_app(sub, "/", want=("200", "302")):
@@ -428,11 +426,20 @@ class Gitea:
pw = "Drill-" + secrets.token_hex(10)
rc, code, page = w.app_curl(sub, "/")
if 'name="db_type"' in (page or "") and 'name="admin_name"' in (page or ""):
args = ["--data-urlencode", "db_type=sqlite3", "--data-urlencode", "password_algorithm=pbkdf2"]
for n in self.FORM_DEFAULTS:
m = re.search(r'name="%s" value="([^"]*)"' % n, page)
if m:
args += ["--data-urlencode", f"{n}={m.group(1)}"]
# EVERY text/hidden field the page offers, with the page's own value — as a browser posts it. 28.x renamed the
# form (app_data_path and no_reply_address in; repo_root_path, lfs_root_path, log_root_path, domain and
# password_algorithm out): a fixed name list left a fresh 28.2.0 uninstalled (9202, 2026-10-28).
args, seen = [], set()
for m in re.finditer(r"<input([^>]*)>", page):
a = m.group(1)
n, v, t = (re.search(r'%s="([^"]*)"' % k, a) for k in ("name", "value", "type"))
if not n or n.group(1).startswith("admin_") or (t and t.group(1) in ("checkbox", "password")):
continue
if n.group(1) not in seen:
seen.add(n.group(1))
args += ["--data-urlencode", f"{n.group(1)}={v.group(1) if v else ''}"]
if "password_algorithm" in page and "password_algorithm" not in seen:
args += ["--data-urlencode", "password_algorithm=pbkdf2"]
args += ["--data-urlencode", f"admin_name={user}", "--data-urlencode", f"admin_passwd={pw}",
"--data-urlencode", f"admin_confirm_passwd={pw}",
"--data-urlencode", f"admin_email={user}@gate.invalid"]
@@ -465,7 +472,18 @@ class Gitea:
if code not in ("201", "200"):
say(f" gitea: repo refused {body[:200]}")
return None
return {"user": user, "pw": pw, "repo": repo}
# one commit through the app's own contents API (2026-10-28): the read-back reads the file's text, so a
# conversion that keeps the repo row but loses the git data fails
text = "drill " + secrets.token_hex(8) + "\n"
rc, code, body = w.app_curl(sub, f"/api/v1/repos/{user}/{repo}/contents/drill.txt", "-u", f"{user}:{pw}",
"-H", "Content-Type: application/json",
data=json.dumps({"content": base64.b64encode(text.encode()).decode(),
"message": "drill commit"}), method="POST")
say(f" gitea: one commit (drill.txt) http={code}")
if code not in ("201", "200"):
say(f" gitea: commit refused {body[:200]}")
return None
return {"user": user, "pw": pw, "repo": repo, "text": text}
def verify(self, w, sub, t, say):
if not w.wait_app(sub, "/", want=("200", "302"), tries=36):
@@ -478,6 +496,15 @@ class Gitea:
rc, code, body = w.app_curl(sub, f"/api/v1/repos/{t['user']}/{t['repo']}",
"-u", f"{t['user']}:{t['pw']}")
ok = code == "200" and t["repo"] in body
if ok and t.get("text"):
rc, c2, b2 = w.app_curl(sub, f"/api/v1/repos/{t['user']}/{t['repo']}/contents/drill.txt",
"-u", f"{t['user']}:{t['pw']}")
try:
got = base64.b64decode(json.loads(b2).get("content") or "").decode()
except (ValueError, TypeError):
got = None
ok = c2 == "200" and got == t["text"]
say(f" gitea: the committed file read back http={c2} same={got == t['text']}")
say(f" gitea: readback of the seeded repo http={code} ok={ok}")
return ok
+2 -1
View File
@@ -10,7 +10,7 @@ subdomain: "git"
slug: "gitea"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-09-30"
catalog_since: "2026-10-28"
# --- Resource hints (displayed on deploy screen) ---
resources:
@@ -216,6 +216,7 @@ i18n:
# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused.
update_ladder:
- {"from": {"gitea": "gitea/gitea:1.27.0"}, "to": {"gitea": "gitea/gitea:1.27.3"}, "digest": {"gitea": "sha256:87a67ee09d3ae0d1df5fda5dcda3e2a1f9236a45b0a59025d6e00e46adc43bef"}, "verdict": "proven", "tested_at": "2026-09-30T15:14:09Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/gitea/bench/evidence/MV-gitea/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/gitea/step.txt", "memory_peak_pct": 26.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 52.9}
- {"from": {"gitea": "gitea/gitea:1.27.3"}, "to": {"gitea": "gitea/gitea:28.2.0"}, "digest": {"gitea": "sha256:30777c91280d973fa02be48b1ade735bd6859e8f6f7af3b4444d519437852504"}, "verdict": "proven", "tested_at": "2026-10-28T18:04:34Z", "harness_version": 5, "evidence": "documentation/audits/gitea-wanderer-2026-10-28/gitea/bench", "box_evidence": "documentation/audits/gitea-wanderer-2026-10-28/gitea/box", "memory_peak_pct": 25.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 70.7}
# --- Security watch (felhom.eu R-1303): where each image's security notices are published ---
# One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10).
+6 -1
View File
@@ -8,7 +8,7 @@
services:
gitea:
image: gitea/gitea:1.27.3
image: gitea/gitea:28.2.0
container_name: gitea
restart: unless-stopped
environment:
@@ -18,6 +18,11 @@ services:
- GITEA__server__ROOT_URL=https://${SUBDOMAIN}.${DOMAIN}
- GITEA__server__SSH_DOMAIN=${SUBDOMAIN}.${DOMAIN}
- GITEA__database__DB_TYPE=sqlite3
# Repository import (D57, operator 2026-10-28): only from these hosts. Gitea 28's own egress rules ([migrations]
# EGRESS_MODE / ALLOWED_HOST_LIST — 28.0 replaced 1.x's ALLOWED_DOMAINS, PR #39426). Measured on 9202: GitHub imports,
# gitea.com and every home-network / Docker address are refused. (28's default alone already refuses the private ones.)
- GITEA__migrations__EGRESS_MODE=strict
- GITEA__migrations__ALLOWED_HOST_LIST=github.com,codeberg.org,gitlab.com
# App-email (managed relay). Injected by the controller only when app-email is on (global +
# per-app); empty ENABLED/ADDR keeps Gitea mail disabled. Gitea applies GITEA__* env on every
# boot (environment-to-ini), so the toggle takes effect on redeploy. See .felhom.yml smtp_mapping.
@@ -0,0 +1,212 @@
# =============================================================================
# .felhom.yml - App metadata for felhom-controller
# =============================================================================
# --- Display info (shown on dashboard) ---
display_name: "Gitea"
description: "Könnyű, saját Git szerver webes felülettel"
category: "dev"
subdomain: "git"
slug: "gitea"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-09-30"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "100M"
mem_limit: "512M"
pi_compatible: true
needs_hdd: false
# --- Deploy fields (first deployment only) ---
deploy_fields:
- env_var: DOMAIN
label: "Domain"
type: domain
description: "A szerver domain neve"
locked_after_deploy: true
- env_var: SUBDOMAIN
label: "Aldomain"
type: subdomain
default: "git"
required: true
locked_after_deploy: true
description: "Az alkalmazás aldomainje"
# --- The setup gate (controller >= 0.281.0, `09` §3 decisions 46-47) ---
# The first visitor would create the admin; a fresh install is closed to everyone but the household until the first setup is done.
setup_gate: true
# Decision 47: the app's own sign-up address is closed once the gate opens (measured on 9202 2026-09-29: /user/sign_up served the registration form after the setup; case-insensitive and slash-tolerant because termix's router ignores case (measured 2026-09-29)).
signup_block: "PathRegexp(`(?i)^/+user/+sign_up`)"
# The app's OWN sign-up switch, set once the gate opens (measured on 9202 2026-09-29: with it on a stranger's
# sign-up is refused even straight at the app; safe from install too (the installer makes the admin)). The compose default stays open, so an installed app is
# unchanged by the catalog.
after_setup:
env:
SIGNUP_CLOSED: "true"
# --- App info (info page content) ---
app_info:
tagline: "Saját Git szerver - GitHub-szerű felület, privát repók"
add_people: "Webhely adminisztráció → Felhasználói fiókok → Új felhasználói fiók létrehozása."
docs_url: "https://docs.gitea.com/"
use_cases:
- 'Privát Git repozitóriók a saját szerveren'
- 'GitHub-szerű felület: pull request, issue, wiki'
- 'CI/CD pipeline-ok (Gitea Actions - GitHub Actions kompatibilis)'
- 'Szervezetek és csapatok kezelése'
- 'Container registry és csomagkezelő'
first_steps:
- 'Nyisd meg a git.DOMAIN címet a böngészőben'
- 'Kövesd az első beállítás varázslót'
- 'Hozd létre az admin fiókot'
- 'Hozd létre az első repozitóriót'
- 'Klónozd a repót: git clone https://git.DOMAIN/user/repo.git'
guide:
checked_version: "1.27.3"
sections:
- title: "Meglévő projekt áthozása"
intro: "Egy máshol tárolt projektet a teljes előzményével együtt áthozhatsz."
steps:
- "Kattints a jobb felső sarokban a + jelre, és válaszd az „Új migráció” pontot."
- "Válaszd ki, honnan hozod a projektet, például GitHub vagy Git."
- "A „Migráció / Másolás URL-ről” mezőbe másold be a projekt klónozási címét."
- "Ha csak te láthatod, jelöld be a „Make repository private” (a tároló legyen privát) jelölőt."
- "Kattints a „Tároló migrációja” gombra, és várd meg, amíg végez."
- title: "Közös munka egy tárolón"
intro: "Egy tárolón többen is dolgozhattok, ha mindenkinek van saját fiókja."
steps:
- "Nyisd meg a tárolót, és kattints a „Beállítások” lapra."
- "A bal oldalon válaszd a „Collaborators” (közreműködők) pontot."
- "Írd be a családtag felhasználónevét, és kattints az „Add Collaborator” (közreműködő hozzáadása) gombra."
- "A neve mellett állítsd be a jogát: „Írás” vagy „Olvasott” (csak olvasás)."
- title: "Teendők követése"
intro: "A hibajegy egy teendő vagy egy hiba, amelyet a tároló mellett követtek."
steps:
- "Nyisd meg a tárolót, és kattints a „Hibajegyek” lapra."
- "Kattints az „Új hibajegy” gombra, és írj címet és leírást."
- "A „Megbízottak” résznél kiválaszthatod, ki foglalkozzon vele."
- "Kattints a „Hibajegy létrehozása” gombra."
- "Ha kész, a hibajegy alján kattints a „Close Issue” (hibajegy lezárása) gombra."
- title: "Kétlépcsős belépés"
intro: "A jelszó mellé a telefonod is kell a belépéshez, így a fiókod biztonságosabb."
steps:
- "Kattints jobb felül a profilképedre, és válaszd a „Beállítások” pontot."
- "A „Biztonság” lapon kattints az „Enroll in Two-Factor Authentication” (kétlépcsős hitelesítés bekapcsolása) gombra."
- "Olvasd be a képet a telefonod hitelesítő alkalmazásával, írd be a kódot a „Jelkód” mezőbe, és kattints az „Ellenőrzés” gombra."
- "A git ezután jelszó helyett tokent kér. Az „Alkalmazások” lapon írj nevet a „Token neve” mezőbe, a repository sorban válaszd a „Read and Write” (olvasás és írás) értéket, és kattints a „Token generálása” gombra."
- "Másold le a tokent azonnal: többször nem jelenik meg."
faq:
- q: "Miért nem működik a klónozás SSH-val?"
a: "A doboz a Gitea-t csak a webes címén (git.DOMAIN) teszi elérhetővé, SSH-n nem. Klónozáshoz a HTTPS címet használd."
- q: "Hogyan kap fiókot egy családtag?"
a: "Idegen nem regisztrálhat: a doboz az első fiók után lezárta a regisztrációt. Új fiókot az admin hoz létre a „Rendszergazdai felület” oldalon, a „Felhasználói fiókok” résznél, a „Felhasználó létrehozása” gombbal."
- q: "Ki látja a tárolóimat?"
a: "A nyilvános tárolót alapból bejelentkezés nélkül is bárki láthatja, aki megnyitja a git.DOMAIN címet. A privátot csak te és a közreműködők. Később a tároló „Beállítások” lapján, a „Danger Zone” (veszélyes zóna) résznél a „Make Private” (privát legyen) gombbal váltasz."
- q: "Miért nem fogadja el a git a jelszavamat?"
a: "Ha bekapcsoltad a kétlépcsős belépést, a git jelszó helyett tokent kér. A tokent az „Alkalmazások” lapon hozod létre, és a jelszó helyére írod."
- q: "Hol vannak a tárolóim?"
a: "A Gitea saját adattárában, a dobozon. A mentésüket az „Adatok és mentés” fülön látod."
# --- Controller-side health probe ---
healthcheck:
checks:
- type: api
port: 3000
# /api/healthz is always available (200) once serving; /api/v1/version 404s pre-install-lock.
path: "/api/healthz"
expect:
status: 200
# --- App-email mapping (apps → in-controller shim → hub → Resend) ---
# Gitea uses STARTTLS to the shim and trusts its self-signed cert via FORCE_TRUST_SERVER_CERT.
# Gitea applies GITEA__* env on every boot, so toggling app-email + redeploy takes effect. The From
# is Gitea's single GITEA__mailer__FROM; USER/PASSWD stay unset (the shim accepts no-auth).
smtp_mapping:
host_var: GITEA__mailer__SMTP_ADDR
port_var: GITEA__mailer__SMTP_PORT
security_var: GITEA__mailer__PROTOCOL
security_value: "smtp+starttls"
from_var: GITEA__mailer__FROM
from_local: gitea
extra:
GITEA__mailer__ENABLED: "true"
GITEA__mailer__FORCE_TRUST_SERVER_CERT: "true"
# --- English copy (localisation slice 5, R-560) --------------------------------------------
# The Hungarian above is UNCHANGED. A box on English reads this block field by field; a missing
# field shows the Hungarian one; a controller older than 0.257.0 ignores the block entirely.
i18n:
en:
description: 'A light Git server of your own, with a web interface'
app_info:
tagline: 'Your own Git server - a GitHub-like interface and private repositories'
add_people: "Site Administration → User Accounts → Create User Account."
use_cases:
- 'Private Git repositories on your own server'
- 'A GitHub-like interface: pull requests, issues, a wiki'
- 'CI/CD pipelines (Gitea Actions - compatible with GitHub Actions)'
- 'Organisations and teams'
- 'A container registry and a package registry'
first_steps:
- 'Open git.DOMAIN in your browser'
- 'Follow the first-run setup wizard'
- 'Create the admin account'
- 'Create your first repository'
- 'Clone it: git clone https://git.DOMAIN/user/repo.git'
guide:
sections:
- title: "Bring over an existing project"
intro: "You can bring over a project kept elsewhere, with its whole history."
steps:
- "Select the + sign at the top right and choose „New Migration”."
- "Choose where the project comes from, for example GitHub or Git."
- "Paste the project's clone address into „Migrate / Clone From URL”."
- "If only you should see it, tick „Make repository private”."
- "Select „Migrate Repository” and wait until it finishes."
- title: "Work together on a repository"
intro: "Several people can work on one repository if each has their own account."
steps:
- "Open the repository and select the „Settings” tab."
- "On the left, choose „Collaborators”."
- "Type the family member's user name and select „Add Collaborator”."
- "Next to their name, set what they may do: „Write” or „Read”."
- title: "Keep track of tasks"
intro: "An issue is a task or a fault that you track next to the repository."
steps:
- "Open the repository and select the „Issues” tab."
- "Select „New Issue”, and write a title and a description."
- "At „Assignees” you can choose who deals with it."
- "Select „Create Issue”."
- "When it is done, select „Close Issue” at the bottom of the issue."
- title: "Two-step sign-in"
intro: "Signing in then needs your phone as well as the password, so your account is safer."
steps:
- "Select your profile picture at the top right and choose „Settings”."
- "On the „Security” tab, select „Enroll in Two-Factor Authentication”."
- "Scan the picture with the authenticator app on your phone, type the code into „Passcode” and select „Verify”."
- "Git then asks for a token instead of the password. On the „Applications” tab, type a name into „Token Name”, choose „Read and Write” in the repository row, and select „Generate Token”."
- "Copy the token at once: it is not shown again."
faq:
- q: "Why does cloning over SSH not work?"
a: "The box makes Gitea reachable only at its web address (git.DOMAIN), not over SSH. Use the HTTPS address to clone."
- q: "How does a family member get an account?"
a: "A stranger cannot sign up: the box closed sign-up after the first account. The admin creates a new account on the „Site Administration” page, at „User Accounts”, with „Create User Account”."
- q: "Who can see my repositories?"
a: "By default, anyone who opens git.DOMAIN can see a public repository, even without signing in. A private one only you and the collaborators. To change it later, use „Make Private” in the „Danger Zone” part of the repository's „Settings” tab."
- q: "Why does git not accept my password?"
a: "If you turned on two-step sign-in, git asks for a token instead of the password. You make the token on the „Applications” tab and type it where the password goes."
- q: "Where are my repositories?"
a: "In Gitea's own data store, on the box. You see their backup on the „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
description: 'The server domain name'
- env_var: SUBDOMAIN
label: 'Subdomain'
description: 'The subdomain this app answers on'
@@ -0,0 +1,60 @@
# Gitea - Könnyű, saját Git szerver webes felülettel
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: None (file-based)
# RAM: ~100M (mem_limit: 512M) | Pi-compatible: Yes
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
services:
gitea:
image: gitea/gitea:1.27.3
container_name: gitea
restart: unless-stopped
environment:
# decision 47: the app's own sign-up switch — open until the box closes it after the first admin (after_setup)
- GITEA__service__DISABLE_REGISTRATION=${SIGNUP_CLOSED:-false}
- TZ=Europe/Budapest
- GITEA__server__ROOT_URL=https://${SUBDOMAIN}.${DOMAIN}
- GITEA__server__SSH_DOMAIN=${SUBDOMAIN}.${DOMAIN}
- GITEA__database__DB_TYPE=sqlite3
# App-email (managed relay). Injected by the controller only when app-email is on (global +
# per-app); empty ENABLED/ADDR keeps Gitea mail disabled. Gitea applies GITEA__* env on every
# boot (environment-to-ini), so the toggle takes effect on redeploy. See .felhom.yml smtp_mapping.
- GITEA__mailer__ENABLED=${GITEA__mailer__ENABLED:-false}
- GITEA__mailer__PROTOCOL=${GITEA__mailer__PROTOCOL:-smtp+starttls}
- GITEA__mailer__SMTP_ADDR=${GITEA__mailer__SMTP_ADDR:-}
- GITEA__mailer__SMTP_PORT=${GITEA__mailer__SMTP_PORT:-2525}
- GITEA__mailer__FROM=${GITEA__mailer__FROM:-}
- GITEA__mailer__FORCE_TRUST_SERVER_CERT=${GITEA__mailer__FORCE_TRUST_SERVER_CERT:-false}
volumes:
- gitea_data:/data
networks:
- traefik-public
deploy:
resources:
limits:
memory: 512M
# /api/healthz is gitea's dedicated health endpoint (200 once serving); /api/v1/version returns
# 404 until the install wizard is completed (INSTALL_LOCK), so it falsely reported unhealthy on a
# fresh deploy. The gitea image ships curl (verified). 90s start_period covers first-boot DB migration.
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:3000/api/healthz"]
interval: 30s
timeout: 5s
retries: 3
start_period: 90s
labels:
- "traefik.enable=true"
- "traefik.http.routers.gitea.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
- "traefik.http.routers.gitea.entrypoints=websecure"
- "traefik.http.routers.gitea.tls=true"
- "traefik.http.routers.gitea.tls.certresolver=letsencrypt"
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
volumes:
gitea_data:
networks:
traefik-public:
external: true