Take a self-hosted installation to production
Prove DNS, TLS, service health, storage, email, search, security, monitoring, and recovery before a self-hosted Nibleaf launch.
- 4 min read
- Updated
On this page
A green container is not a production launch. Prove the complete path from DNS and TLS through the application, storage, email, publishing, search, backups, and restore.
Test every intended origin independently:
- dashboard
APP_URL; - storage
STORAGE_PUBLIC_ENDPOINT; - optional admin origin;
- one project under
SITE_BASE_DOMAIN; - the custom-domain CNAME target;
- one real external custom domain.
A wildcard project domain needs wildcard DNS and a certificate covering
*.<base-domain>. Let's Encrypt wildcard certificates require a DNS challenge.
For custom domains, preserve the validated original Host header through the
ingress because Nibleaf uses it to select the project.
Run from the deployment directory. In a guided-installer directory, omit
-f docker-compose.prod.yml:
docker compose -f docker-compose.prod.yml ps
docker compose -f docker-compose.prod.yml logs migrate
docker compose -f docker-compose.prod.yml logs --tail=200 server worker app
The server and worker expose internal /health responses; the app health check
requests /sign-in. Keep those checks on the internal network or loopback. The
worker returns 503 while email delivery is required and no provider is configured.
Then test actual behavior: create an account and sign in with an emailed code,
upload an image, publish a two-page project, search the second page, and request a
missing page.
For enabled optional workflows, also create and download one export, exercise a redirect, complete one Git push and preview, and prove both authorized and unauthorized private reader access.
On v0.2.0 or later, additionally verify complete/partial/unavailable usage states,
one add-on consent cycle, and, for each one you enable, search diagnostics without
content leakage, one non-production integration lifecycle, and one least-privilege
MCP key from creation through revocation. Search needs the
optional Qdrant overlay, integrations need
INTEGRATION_CREDENTIAL_ENCRYPTION_KEY, and MCP is off by
default.
Confirm that:
- internal ports are unreachable from the internet;
- worker operations require credentials;
- authentication and OAuth redirects use the public origin;
- object-storage credentials are limited to the intended bucket;
- public HTML carries the expected security headers and request-specific CSP;
- admin and token-bearing auth pages are not indexable;
- sign-up policy matches the intended audience;
- private reader, audience, and JWT rules deny an ungranted page and search result;
- Git provider credentials use the documented minimum repository scopes;
- backups use separate access control from the live service.
Do not publish secrets, customer content, access tokens, or full environment files in logs, screenshots, issues, or support discussions.
Monitor container health, failed publish and export jobs, queue depth, Postgres disk usage, object-storage usage, backup age, certificate expiry, 5xx responses, and mail delivery. Add an external check for the canonical homepage and one deep published page, not only the app port.
Set alerts before launch and record who responds to them.
Launch only when a durable record contains the image tag and digest, migration result, DNS and TLS evidence, public 200/redirect/404 checks, upload and search evidence, last backup identifiers, isolated restore result, and the owner of alerts and upgrades.
Complete backup and restore before the first production content publish.
Keep analytics health independent from core readiness. The source quickstart/Coolify ClickHouse budget
is a starting point for small hosts; measure disk headroom before enabling ingestion.
Review analytics operations and perform the
isolated analytics restore drill before upgrades.
Non-Coolify inline Compose configs require Docker Compose 2.23.1 or newer.
The Coolify file instead uses its documented bind-mount content: extension to
create the ClickHouse XML file. Plain docker compose config rejects this
Coolify-only extension; deploy that file through Coolify.
The pinned v0.2.1 Compose file has no ClickHouse service. The current-source analytics, workspace provider, chat and MCP OAuth guides need v0.2.1 or a later image, migrations and explicit environment wiring. An environment example does not prove the released Compose file passes a setting.
For features you deploy, verify the chosen provider and READY publication index, one English and one Arabic chat answer with working citations, a refusal, stop and retry, and a budget-limited request. Confirm transcript capture matches the site setting and visitor consent, and that unknown usage remains unknown. Provider verification only reads model catalogs; perform a real question to check account credit and model availability. Editor drafting still uses the instance OpenRouter key, separately from a workspace search provider.
For MCP OAuth, check discovery on the HTTPS dashboard origin, connect one least-privilege app, and verify disconnect stops the next request. For MCP writes, preview a fictional project with another writer’s pending draft and confirm the preview includes the whole project before publishing.