Skip to content

Platform runtime ​

The repository contains a single application Docker image, but its existence does not prove production deployment readiness.

Before launch, check data durability and failure behavior, not just whether the home page opens.

This records file inspection based on f96ae27. The image and production Compose were not run in that task.

Existing build ​

The Dockerfile builds the API on Node 22, two Nuxt SPAs and nginx. Bun 1.3.14 installs dependencies. Runtime includes Node, nginx, Git and Chromium for Playwright; there is no separate Nuxt process per interface.

text
External TLS → nginx :8080
                 ├─ /          → static app
                 ├─ /admin/    → static admin
                 ├─ /v1/      → NestJS :3333
                 ├─ /api/      → NestJS (the old spelling, read as /v1)
                 ├─ /mcp       → NestJS (Agentfy agents)
                 ├─ /ranch/mcp → NestJS (the Ranch hub agent)
                 └─ /health    → NestJS

These are the existing container's routes. They do not implement the target customer-domain router.

docker/start.sh first runs prisma db migrate (Prisma 8 plans; the first run after Prisma 6 parks the old tables in schema bs_prisma6 and copies their rows), then the API in the background and nginx in the foreground. Production Compose defines web and PostgreSQL, binds the web port to host loopback and assumes an external TLS proxy. Its configuration and operation were not confirmed here.

What to check before use ​

PostgreSQL data. docker-compose.prod.yml specifies postgres:18, but mounts the named volume at /var/lib/postgresql/data. From version 18 the official image uses a different layout and recommends mounting /var/lib/postgresql. This configuration mismatch requires checking actual PGDATA, correcting the mount and testing persistence after recreation. An existing database first needs backup and a verified migration, not a simple path change. Image documentation.

API termination. A comment in docker/start.sh promises container exit if the API fails, but the script starts the API in the background and waits for nginx. It does not explicitly wait for the child API process to exit. Test a forced failure and correct process supervision. A healthcheck alone does not prove automatic recovery.

Queues. Current copy work stays in API memory. Before running multiple replicas, move jobs to durable storage and test competing workers. Proposed model.

Files. The local driver needs persistent disk; an ephemeral container filesystem is insufficient. The S3 driver exists, but production Compose currently passes local parameters and does not list S3 credentials. Deliver those explicitly to runtime and verify writes and reads; changing STORAGE_DRIVER alone is insufficient.

Why this is not a one-command launch guide yet ​

Before hosting the application, confirm TLS, database and file access, backups, migrations, process termination and behavior after restart. These shortcomings were recorded, but product configuration was not changed in that documentation task.

Sources: Dockerfile, docker-compose.prod.yml, docker/start.sh, docker/nginx.conf. Release procedure.

Bonsite — small websites for your big ideas.