Skip to content

justbit/justbitwp-stack

Repository files navigation

Justbit WP — Stack chiavi-in-mano per siti WordPress

Repository template GitHub. "Use this template" → in 5 minuti hai un nuovo sito WordPress locale; in 30 minuti hai un sito in produzione su GCP con HTTPS automatico, deploy via Git push, backup off-site, GDPR-compliant e accessibile WCAG AA.

📊 Vedi la infografica completa dello stack — pagina autosufficiente che spiega architettura, workflow E2E, features built-in, numeri chiave. Pensata per onboarding interno e demo a clienti. Sorgente HTML.

Cosa contiene

  • Docker Compose stack: Caddy 2 + WordPress 6.x (PHP-FPM 8.2) + MariaDB 11 + Redis 7 + backup container
  • Provisioning automatico GCP (VM e2-small, IP statico, bucket GCS) via gcloud
  • Deploy via GitHub Actions: push → SSH → docker compose up → cache flush, con DB snapshot pre-deploy, rollback automatico su smoke-test fail, e issue GitHub auto-creata su failure
  • Plugin Justbit (release ZIP versionati):
    • justbitz — Compliance & Consent Management (GDPR/CCPA/LGPD + Google Consent Mode v2)
    • justbit-wp-security — Hardening (anti user enum, XML-RPC off, sec headers)
    • justbit-maps — Mappe Leaflet + Carto/OSM senza API key
  • Starter theme block-based FSE con design tokens, accessibility WCAG AA, performance baseline (PSI 95+ mobile, 100 desktop), PWA con Service Worker, OG image dinamica SVG, multilingua-ready
  • Onboarding wizard interattivo end-to-end (./scripts/onboard.sh): zero clic in console GCP, tutto da CLI con stato salvato e ripristinabile
  • Lifecycle completo: scripts/onboard.sh (go-live) · scripts/offboard.sh (smonta tutto con backup finale) · scripts/restore.sh (disaster recovery DB+volumi anche da GCS) · make wp-updates (plugin wp.org)
  • HTTPS resiliente al rate-limit: auto-fallback a Let's Encrypt staging se DNS non è propagato; --promote-cert per passare a prod quando lo è
  • Multi-tenant ready: DB e Redis opzionalmente su VM condivisa per portfolio di 5+ siti (DB_HOST/REDIS_HOST env)
  • Sicurezza CI: gitleaks secret scan ad ogni PR · file integrity check cron · CSP Report-Only · Caddyfile regression test 5 scenari .env

Quickstart

# 1. Crea il repo dal template
gh repo create my-org/my-project --template justbit/justbitwp-stack --private --clone
cd my-project

# 2. Wizard post-clone (genera .env, scarica starter theme, personalizza README)
./scripts/bootstrap-new-project.sh

# 3. Locale
make up && make bootstrap          # → http://localhost:8080

# 4. Prod (quando sei pronto)
./scripts/onboard.sh                # wizard provisioning GCP + DNS + Let's Encrypt

Documentazione completa: STARTER.md · AGENTS.md · DEPLOY.md · docs/SEO-SETUP.md (Site Kit + Search Console + GA4 + GDPR).

Cosa è "stack" vs "progetto"

Vedi AGENTS.md per la regola operativa. In breve:

  • Stack (questo template, riusabile): Docker, Caddy, WP infra, deploy, scripts
  • Progetto (dove personalizzi): project/theme/, project/seeds/, .env, plugins/manifest.yml

Esempio reale di sito basato su questo stack

visit.torinodisangro.info — Visit Torino di Sangro, sito turistico del Comune di Torino di Sangro (CH, Abruzzo). Repo: justbit/visit-torinodisangro.

License

GPL-2.0-or-later (eredita da WordPress core). Plugin Justbit: GPL.

Maintainer

Justbit — Francesco Pace.

About

Justbit WP — stack chiavi-in-mano per siti WordPress (Docker + Caddy + GCP + deploy automatico)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors