The platform
How the platform works
The self-hosted platform behind every project: one VPS, Coolify, approval-gated CI/CD, single sign-on, monitoring, logs and email, all set up as code.
What runs where
Every app has its own subdomain and its own Coolify app on the same VPS. Cloudflare answers DNS, and Coolify's proxy routes each name to its container with an HTTPS certificate.
- thebensage.comPortfolioThis site
- users.User DirectoryNext.js app
- api.API.NET and PostgreSQL
- ui.StorybookThe shared components
- id.authentikSign-in for every app
- grafana.GrafanaMetrics, logs and alerts
Take a closer look
- Sign-in and accessHow sign-in works across the sites: single sign-on and single sign-out through my own authentik, a request-access page approved app by app, and an email at every step.Read more
- EmailHow the platform sends and receives email: SMTP2GO on a verified domain for access requests, approvals and alerts, and Cloudflare forwarding for the public addresses.Read more
- How I workHow I take a change from idea to production: clear outcomes, written house rules in every repo, real verification before anything ships, and every review, commit and deploy approved by me.Read more
- APIEvery endpoint of the API, generated from the OpenAPI document the live API serves.Read more
Behind the scenes
Every piece, and the tools behind it
Every project runs on infrastructure I set up and maintain: the server, the deployment pipeline, sign-in, monitoring, logging, email and security.
- Pull requestOne open-source repo per project
- GitHub ActionsChecks, tests, Docker image, approval
- CoolifyPulls the approved image and deploys
- CloudflareDNS for the domain and subdomains
Self-hosted VPS
One IONOS VPS runs everything. Coolify manages each project as its own app, with HTTPS certificates handled by its proxy.
- IONOS
- Coolify
Docker builds
Every app ships as a lean multi-stage Docker image, built once in CI, so the image I approve is exactly the one that goes live.
- Docker
- Node 26
CI/CD
GitHub Actions checks every pull request and push, and builds the Docker image. A green build on main deploys only after a reviewer approves it, and the pipeline sends every setting to the server, so nothing is configured by hand.
- GitHub Actions
- Dependabot
One design system
One npm package gives every site the same components, motion and brand, documented in Storybook on its own subdomain. Every colour is defined once, by role (surface, primary, danger…), in a single file: the sites, Storybook, the sign-in pages and the emails are all generated from it, so changing the palette there changes it everywhere.
- @thebensage-dev/ui
- Storybook
- Design tokens
Single sign-on
My own authentik instance signs you in to every site over OpenID Connect: sign in once for all of them, sign out once from all of them. Passkeys and two-factor, group-based access, one “Request access” page that I approve app by app (with emails at each step) and single-use invite links for guests, all set up from a versioned blueprint.
- authentik
- OIDC
Monitoring and alerts
Prometheus collects metrics from the server, each container and HTTPS checks on every site. Grafana charts them and emails me when a site goes down, slows down or a certificate is about to expire.
- Prometheus
- Grafana
- Blackbox exporter
- cAdvisor
Centralised logs
Alloy gathers the output of every container and stores it in Loki, so errors from any app can be searched in the same Grafana, next to the metrics.
- Loki
- Alloy
- Grafana
Email
Access requests, approvals and alerts go out through SMTP2GO from noreply@, on a verified domain with its DNS records in Cloudflare. The public addresses are forwarded by Cloudflare Email Routing, and every setting comes from the pipeline.
- SMTP2GO
- Cloudflare Email Routing
Public status page
A read-only Grafana dashboard anyone can open shows each site's status, uptime and response time, and the server's CPU, memory and disk, from the same checks that send the alerts. It's linked in the footer as Live status.
- Grafana
- Blackbox exporter
Ready for a team
Every project lives in one GitHub organization, in the open. Main is protected by a ruleset (pull requests must pass CI, no force pushes), and production secrets sit behind an approval-gated environment, so only a reviewed deploy can read them. Shared settings are set once for the whole organization, and each repo derives the rest, so a new teammate or a new project needs no secrets copied around.
- GitHub organization
- Protected branches
- Environments
Security by default
HTTPS everywhere with HSTS and security headers, sign-in through authentik with passkeys, two-factor and group-based roles for the admin tools and for editing, and no public ports for internal services. Secrets stay out of git and out of Docker images, and image versions are pinned and updated through reviewed Dependabot PRs.
- HSTS
- CSP
- Passkeys
- Dependabot
The whole platform, locally
One Docker Compose command runs every site, sign-in, monitoring and logs on my laptop, built the same way as production, so changes are checked end to end before they ship.
- Docker Compose
- Caddy
The tools behind it
Hosting and delivery
Built with