Skip to content

Quick Start (Docker Compose)

Enmesh Hub runs as three containers (app, geometry-worker, and postgres with pgvector/pgvector:pg17). In self-hosted deployments, the app container serves both the Hono API and the React SPA from one port.

Prebuilt multi-architecture images are published at ghcr.io/enmesh-app/enmesh-app:latest and ghcr.io/enmesh-app/enmesh-geometry-worker:latest.

1. Clone and Set Up Environment

Terminal window
git clone https://github.com/enmesh-app/enmesh.git
cd enmesh
cp .env.example .env

Edit .env to set these variables:

  • BETTER_AUTH_SECRET: Set a random 32-byte hex string (openssl rand -hex 32).
  • ENMESH_HOST_LIBRARY_DIR: Set an optional path on your host or NAS containing 3D models (mounted read-only at /library:ro).

2. Start the Containers

Terminal window
docker compose -f deploy/docker-compose.yml up -d --build

Run this command to make sure that the service is healthy:

Terminal window
curl -s http://localhost:3000/api/v1/health

Expected response:

{"status":"ok","service":"enmesh-api","version":"0.1.2","database":"connected"}

3. Finish the Setup Wizard

Open http://localhost:3000 in your browser:

  1. Create your Instance Admin account and initial workshop workspace.
  2. Enmesh creates a writable Managed Inbox for web uploads and browser captures.
  3. To scan an existing folder, turn on Attach a Read-Only Local or NAS Library and enter /library.

Reverse-Proxy SSO (Authentik, Authelia, Cloudflare Access)

When an identity-aware proxy sits in front of Enmesh Hub, set these variables in .env:

Terminal window
TRUSTED_PROXY_HEADERS=true
TRUSTED_PROXY_USER_HEADER=Remote-Email
TRUSTED_PROXY_NAME_HEADER=Remote-Name
TRUSTED_PROXY_SECRET=your-shared-proxy-secret

Send X-Enmesh-Proxy-Secret from your reverse proxy so direct requests cannot spoof user headers.