¥129.90

One-time template price with installation and customization

One-click private deployment after purchase, details

Choose a payment method

Live preview
Version 1.0.0 Updated 11/26/2026 0 downloads · 0 deployments Retail

Deployment Guide

Version 1.0.0 · single container · port 8080 · SQLite + local uploads (max 1 replica)

Requirements

Item Requirement
Docker 24+ with Compose v2 (docker compose version)
CPU / memory 0.5 CPU / 1 GB minimum (1 CPU / 2 GB recommended)
Disk 20 GB+ (images, uploads and SQLite live in the data volume)
Replicas Exactly 1 — SQLite and local files cannot be shared by concurrent writers
Network Only port 8080; no worker, Redis or MySQL required

What is in the package

Dockerfile                 # runs artifacts only, no install / build
docker-compose.yml         # single-host deployment
intematrix.deploy.json     # marketplace manifest (single container, 8080)
apps/web/dist/             # production web build (contains .build-meta.json and config.js)
apps/api/out/index.js      # API artifact
apps/api/drizzle/          # migrations (applied automatically on start)
docs/                      # four user documents + docs.json / rag.json

Quick start

# 1. Unzip and enter the project root
cd desksetuplite

# 2. Start (the first run builds the image, migrates and seeds)
docker compose up -d

# 3. Open
#    http://localhost:8080

First sign-in uses the seeded owner account:

Field Default Environment variable
E-mail owner@desksetuplite.com SUPER_ADMIN_EMAIL
Password Admin@123456 SUPER_ADMIN_PASSWORD

Before going live: change SUPER_ADMIN_PASSWORD and JWT_SECRET, then change the password under Users. Demo identities (owner / operations / service / warehouse / customer) appear only in mock preview; the production login page never shows them and ships no passwords.

Without Compose:

docker build -t desksetuplite .
docker run -d --name desksetuplite -p 8080:8080 \
  -v desksetuplite-data:/app/data \
  -e JWT_SECRET=replace-with-32-chars \
  -e SUPER_ADMIN_PASSWORD=replace-me \
  desksetuplite

Environment variables

Variable Default Description
NODE_ENV production The API only serves the web build in production
PORT 8080 Container port (matches Dockerfile and manifest)
BIND_HOST 0.0.0.0 Bind a specific interface when the platform injects it
PUBLIC_DIR /app/public Web build directory
DB_DRIVER sqlite sqlite / mysql / postgres
DATABASE_URL /app/data/sqlite.db SQLite file path or database URL
UPLOAD_DIR /app/data/uploads Upload directory
MIGRATIONS_DIR /app/drizzle Migration SQL directory
STORAGE_DRIVER local Local storage; replaceable with an object-storage adapter
MAIL_PROVIDER / SMS_PROVIDER console Console drivers (no real mail / SMS)
JWT_SECRET — Required, 32+ random characters
SUPER_ADMIN_EMAIL / SUPER_ADMIN_PASSWORD see above Seeded owner account
PUBLIC_API_MODE http Runtime API mode: http for production, mock for preview only
PUBLIC_API_BASE /api Frontend request prefix
CORS_ORIGIN — Frontend origin when the API is on a separate domain

Runtime configuration /config.js

  • index.html loads /config.js before the app bundle;
  • In production the API emits {"apiMode":"http","apiBase":"/api"} according to PUBLIC_API_MODE;
  • The marketplace preview service injects mock (you do not configure it);
  • The client no longer probes /api/health, so the classic “deployed but still shows demo data” problem cannot occur;
  • / is served with no-store, so a redeploy never references deleted chunks.

Persistence and backup

  • SQLite and uploads live under /app/data (Compose volume app-data);
  • Rebuilding or upgrading the container keeps the data; deleting the volume erases it;
  • Backup:
docker cp desksetuplite:/app/data ./backup-$(date +%F)
# or
docker run --rm -v desksetuplite-data:/data -v "$PWD":/backup alpine \
  tar czf /backup/desksetup-data.tgz -C /data .
  • Restore: stop the container, write the backup back into the volume, start it again.

Upgrade

  1. Back up /app/data;
  2. Replace the package (or rebuild with docker compose build --no-cache);
  3. docker compose up -d — new migrations run on start;
  4. Open the home page and verify the version and data; purge the CDN cache if any (HTML is already no-store).

Upgrades never drop orders, products or uploads; migrations only add tables / columns.

Health checks and troubleshooting

Check Command / URL Expected
Container docker compose ps healthy
Health curl http://localhost:8080/api/health {"status":"ok","features":[...],"startedAt":"..."}
Runtime mode curl http://localhost:8080/config.js apiMode: "http"
Home page curl -I http://localhost:8080/ 200 with cache-control: no-store

Common issues:

  • Cannot open / 502: confirm the container listens on 8080, check docker compose logs -f, ensure the port is free;
  • Sign-in fails: use SUPER_ADMIN_EMAIL/PASSWORD; environment changes require recreating the container;
  • Still shows demo data: check curl /config.js; mock must only appear in marketplace preview;
  • Images missing: ensure /app/data/uploads is writable and the reverse proxy allows /upload/*;
  • Large upload rejected: default limit is 100 MB (base KV setting), adjustable in Settings;
  • Mojibake document names: do not use Windows tar; use 7-Zip or unzip (the archive sets the UTF-8 flag).

Marketplace upload fields

Field Value
Template name DeskSetupLite 桌搭好物商城
Slug desksetuplite
Category E-commerce / Retail (otherwise Management / Admin)
Version 1.0.0
Theme colour Indigo (themes/product.css)
Dockerfile Dockerfile
Build context .
Port 8080
Min / max replicas 1 / 1
Deploy price 0
Apps apps/api (api) / apps/web (web)

Security checklist

  1. Set a strong JWT_SECRET and change the default owner password;
  2. Put the app behind HTTPS (Nginx / Caddy) and expose only 8080;
  3. Back up /app/data regularly; never commit data/ to git;
  4. Disable auth.allowRegister in Settings if customers should not self-register;
  5. Orders, payments, refunds and after-sales are append-only; cancellations require a reason.

Frequently asked questions

What do I get after purchase?
The full source code (web frontend + API backend), deployment documentation and an online preview. After purchase you can download it from "My Projects" and use it for your own product.
Can it be deployed to my own server?
The Web + API edition supports one-click private deployment, so data stays on your own infrastructure. Mini-program and App add-on packages are not one-click deployable.
Can I get a refund?
Orders whose code package has not been downloaded can request a refund through a support ticket. Once the code package has been downloaded, refunds are not supported.
How do I reach support?
Open "My Projects" and click "Support" to submit a ticket. Staff reply inside the ticket, and status changes are pushed as WeChat notifications.

部署 API Key

用于「一键部署」与部署 Skill/脚本;明文经服务端 RSA 加密后由本页解密,不会明文出网。

你的 API Key(前缀 )
配置环境变量 INTEMATRIX_DEPLOY_APIKEY
export INTEMATRIX_DEPLOY_APIKEY=imd_xxx

macOS/Linux 追加到 ~/.zshrc 或 ~/.bashrc 可持久化;Windows 的 setx 需重开终端生效。

重置后旧 Key 立即失效;请勿把 Key 写进前端代码或提交到仓库。