diff --git a/proxmox/lxc103-dokploy/README.md b/proxmox/lxc103-dokploy/README.md index bcff116..bbd432e 100644 --- a/proxmox/lxc103-dokploy/README.md +++ b/proxmox/lxc103-dokploy/README.md @@ -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) ```