docs(gitea): add stop_grace_period to postgres service
CI / Assistant Split Regression (push) Failing after 8m25s
Release Image / Build And Push Images (push) Failing after 8m53s
CI / Unit Tests (push) Failing after 10m23s
Docker Deploy Test / Fresh-Linux Docker Deploy (push) Failing after 9m31s
CI / Typecheck (push) Failing after 10m57s
CI / Architecture Guardrails (push) Failing after 11m7s
CI / Lint (push) Successful in 32m7s
CI / Build (push) Has been skipped
CI / E2E Tests (push) Has been skipped

Prevents slow crash-recovery fsync on QNAP HDD-backed storage after
container stop/replace. Without the grace period postgres is killed
mid-write, and the next startup blocks Gitea for 5-10 minutes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-12 12:38:05 +02:00
parent e9c8e2de7b
commit 00e16bff9e
+5
View File
@@ -64,6 +64,11 @@ services:
image: postgres:16-alpine image: postgres:16-alpine
container_name: gitea-db container_name: gitea-db
restart: unless-stopped restart: unless-stopped
# Geben wir Postgres Zeit für sauberen Shutdown beim Stop/Replace.
# Ohne diesen Grace muss beim nächsten Start Crash-Recovery laufen
# (fsync über alle Files) — auf HDD-backed QNAP-Storage dauert das
# schnell 5-10 Minuten und blockt Gitea beim Start.
stop_grace_period: 60s
environment: environment:
- POSTGRES_USER=gitea - POSTGRES_USER=gitea
- POSTGRES_PASSWORD=UGi2VZA7SgYGov - POSTGRES_PASSWORD=UGi2VZA7SgYGov