From bb91d06e4b62089cbb275f37f2e396890e32b977 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Tue, 28 Apr 2026 12:06:07 +0000 Subject: [PATCH] docs(lxc103): add git workflow and auto-deploy webhook configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- proxmox/lxc103-dokploy/README.md | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) 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) ```