feat: build CRM image in Gitea registry
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 29s

This commit is contained in:
Kroonk
2026-05-22 16:01:39 +02:00
parent 16e59b1532
commit 38cc4c09ca
4 changed files with 94 additions and 7 deletions

View File

@@ -108,3 +108,32 @@ Auf der Suche nach neuen Abenteuern.
* **Backend**: Node.js, Express.js, SQLite (`sqlite3`)
* **Frontend**: Vanilla HTML5, CSS3 (luxuriöse HSL-Variablen, Backdrop-Filter), Vanilla JavaScript (SPA, state-driven rendering)
* **Icons**: Lucide Icons (per CDN geladen)
---
## Gitea Registry Deployment auf MischNAS
MischCRM soll auf der NAS nicht lokal gebaut werden. Der Build laeuft in Gitea Actions und pusht das fertige Image in die lokale Gitea Container Registry:
```text
git.mischlabs.de/mrdiderot/crm:latest
```
Die NAS zieht dieses Image per Docker Compose. Der universelle Watchtower kann es danach regelmaessig pruefen und bei neuen Images automatisch aktualisieren.
### Start und manuelles Update auf der NAS
```bash
cd /volume2/docker/mischcrm
git pull --ff-only
docker compose pull
docker compose up -d
```
Falls `docker compose up -d` lokal zu bauen beginnt, steht in der Compose noch `build:` statt `image:`. Korrekt ist:
```yaml
image: git.mischlabs.de/mrdiderot/crm:latest
```
Die SQLite-Daten bleiben ueber `./data:/app/data` persistent. Die Datei `./data/crm.db` darf nicht ins Git committed werden.