From 1f06472140d4cd2c8a2ae42bb915a6524b427787 Mon Sep 17 00:00:00 2001 From: Per Magnus Petersen Date: Sat, 21 Feb 2026 10:15:26 +0100 Subject: [PATCH] Add README with setup and backup instructions Co-Authored-By: Claude Opus 4.6 --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bb4a2ef..45501f6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,30 @@ -# gitea +# Gitea +Self-hosted Gitea instance running on Docker Compose with a remote PostgreSQL database and automated daily backups. + +## Services + +- **gitea** — Web UI on port `3008`, SSH on port `2222` +- **gitea-backup** — Alpine sidecar running a daily cron job at 2 AM + +## Setup + +```bash +docker-compose up -d +``` + +## Backups + +Backups run automatically at 2 AM daily, writing `gitea-dump-*.zip` files to `/mnt/nasen/backup/gitea` with 7-day retention. + +Run a manual backup: + +```bash +docker exec gitea-backup /usr/local/bin/backup.sh +``` + +Check backup logs: + +```bash +docker exec gitea-backup cat /var/log/backup.log +```