Skip to content

Setup deploy server (Coolify + workflow Dokploy-style)

Runtime: Coolify su VPS Netcup (server.ezbit.it).
Orchestrazione CI/CD: GitHub Actions + webhook (secrets DOKPLOY_*) — stesso pattern Dokploy + Frappe.

Branch workflow (Odoo.sh)

feature/* → dev (locale Docker) → staging → main
BranchDeployDominio
devmake up localelocalhost:8001
stagingCoolify + tag :stagingstaging-factoryos.ezbit.it
mainCoolify + tag :mainfactoryos.ezbit.it

Coolify — servizi Docker Compose

  1. Progetto ez-factoryos, ambienti staging e production.
  2. Resource Docker Compose con deploy/compose/server.stack.yml.
  3. Variabili da .env Coolify (non committare segreti): SITE_NAME, SECRET_KEY, DB_*, CUSTOM_IMAGE, CUSTOM_TAG, TRAEFIK_ROUTER_PREFIX.
  4. Non configurare domini nella UI: routing via label Traefik nel compose (vedi guida Coolify multitenant).
  5. Volumi persistenti: sites, db-data, redis-queue-data.
  6. Webhook deploy collegati a GitHub Environments staging / production.

GitHub Actions

WorkflowTriggerAzione
build-image.ymlpush dev/staging/mainBuild + push GHCR (:staging, :main, :sha-*)
deploy-staging.ymlpush stagingWebhook Coolify staging
deploy-production.ymlpush mainPromote digest + webhook production

Verifica post-deploy

bash
curl -fsS https://staging-factoryos.ezbit.it/api/method/ping
curl -fsS https://factoryos.ezbit.it/api/method/ping
# atteso: {"message":"pong"}

Riferimenti Frappe community

Vedi anche deploy/dokploy/README.md.

Documentazione Ez FactoryOS — Ortobellina / EzBit