- Copy
.env.exampleto.envinbackend/. - Set
MASTER_KEYand any discovery/storage settings. - Run:
cd backend
npm install
npm run build
npm run startThe root docker-compose.yml is a starting point for local or VPS deployment.
Use it when you want:
- persistent control-plane storage
- SQLite volume persistence
- a simple single-container backend deployment
See COOLIFY.md for the detailed Coolify setup and Public Database Guide for the full Cloudflare + subdomain workflow.
In summary:
- deploy the backend as a Docker app
- expose port
3000 - mount
/app/data - configure
MASTER_KEY - optionally configure discovery and adoption
- add a wildcard subdomain if you want database-specific hostnames
/app/datafor control-plane DB and managed SQLite files- an optional separate mount for raw discovered SQLite files if you want to inspect them before adoption
Important variables:
MASTER_KEYDATABASE_FILESQLITE_STORAGE_ROOTSQLITE_DISCOVERY_PATHSQLITE_DISCOVERY_PROJECT_IDSQLITE_DISCOVERY_ADOPTCORS_ORIGIN