docs(lxc103): add git workflow and auto-deploy webhook configuration

Documentat fluxul complet modificare → redeploy: manual vs auto-deploy
prin webhook Gitea/GitHub. Tabel repo-uri curente per serviciu.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-04-28 12:06:07 +00:00
parent 8f4f049e58
commit bb91d06e4b

View File

@@ -250,6 +250,59 @@ Conexiunea din aplicație folosește hostname-ul serviciului pe `dokploy-network
--- ---
## Workflow: Modificare Cod + Redeploy
Toate serviciile sunt legate la Git. Fluxul pentru orice modificare:
```
1. Modifici fișierele local (docker-compose.yml, Dockerfile, cod sursă etc.)
2. git commit + git push → repo-ul sursă (Gitea / GitHub)
3. Dokploy preia modificările și face redeploy
```
**Pasul 3 are două variante:**
### Varianta A — Redeploy manual
Intri în Dokploy UI → proiect → serviciu → tab **Deployments** → buton **Deploy**.
Dokploy face `git pull` + rebuild + restart. Necesar dacă nu e configurat webhook.
### Varianta B — Auto-deploy prin webhook (recomandat)
La fiecare `git push`, Gitea/GitHub notifică automat Dokploy → redeploy fără intervenție.
**Configurare o singură dată per serviciu:**
```
Dokploy UI → proiect → serviciu → tab General → Auto Deploy → ON
→ copiază Webhook URL afișat
Gitea (gitea.romfast.ro):
repo → Settings → Webhooks → Add Webhook
Payload URL: [webhook-ul din Dokploy]
Content Type: application/json
Trigger: Push events
→ Save
GitHub:
repo → Settings → Webhooks → Add webhook
Payload URL: [webhook-ul din Dokploy]
Content Type: application/json
Events: Just the push event
→ Add webhook
```
**Repo-uri curente și sursa lor:**
| Serviciu | Repo | Branch |
|----------|------|--------|
| space-booking (Compose) | `gitea.romfast.ro/romfast/space-booking` | master |
| icon-generator (Application) | `github.com/Romfast/icon-generator` | main |
| qr-pdfqrapp (Application) | `gitea.romfast.ro` (detalii în Dokploy UI) | — |
| qr-qrgenerator (Application) | `gitea.romfast.ro` (detalii în Dokploy UI) | — |
---
## Workflow: Adăugare App Nouă (Rezumat) ## Workflow: Adăugare App Nouă (Rezumat)
``` ```