Deploy to a VPS, Render or Fly
Deploy Datum on Ubuntu, Render or Fly.io with the supplied configuration files.
Overview
Every deployment runs the image from Install with Docker. The options differ in how they run the image and host the database.
VPSSTART HERE
- One installer for Ubuntu 24.04
- The same installer handles upgrades
- CI tests the Compose install it performs
- You maintain the server and backups
Render
- Managed Postgres with point-in-time recovery
- One Blueprint creates an API and two workers
- Three paid services and a paid database
Fly.io
- Configuration files for a test instance
- One database node without managed Postgres
On a VPS
deploy/droplet/install.sh prepares a fresh Ubuntu 24.04 server from any provider. It installs Docker and configures the firewall. It clones Datum into /opt/ocmgr, builds the image and writes deploy/.env. It starts the containers and waits for the app to respond. It also runs doctor.
Point a domain at the machine
Create a DNS record that points your domain, such as
ocmgr.example.com, to the server.Run the installer
Run the following command.
curl -fsSL https://raw.githubusercontent.com/OCMGR/ocmgr/main/deploy/droplet/install.sh \ | sudo bash -s -- --domain ocmgr.example.com --jsonWith
--domain, the installer enablestls, opens ports 80 and 443, and sets the public address. Without this option, the app listens only on127.0.0.1:3000. The firewall then allows only SSH.Follow the printed instructions
Run the printed commands from
/opt/ocmgrto create a workspace, API key and first owner.These match the final steps in Install with Docker.
Check the installation
Check that the summary reports
ok: true. Check thathttps://ocmgr.example.com/healthzresponds.
The installer accepts these additional options:
| Option | Purpose |
|---|---|
--with-events |
Enable the events profile |
--ref <tag> |
Install a specific release |
--dir <path> |
Change the installation directory from /opt/ocmgr |
--no-firewall |
Preserve the existing firewall configuration |
Each step checks its current state. You can rerun the installer after a failure or to upgrade.
Configure backups after installation. The installer does not configure copies outside the server.
On Render
deploy/render.yaml defines an API service, a core worker, a separate pieces worker and managed Postgres 17 in Frankfurt. This matches the hosted service configuration. Schema checks validate the Blueprint but do not verify a deployment. Check your instance after deployment.
Create the Blueprint
Choose New → Blueprint in Render. Connect your copy of the repository. Set the Blueprint path to
deploy/render.yaml.Supply the master key
Generate
OCMGR_MASTER_KEYSon your computer.node -e 'console.log("k1:" + require("node:crypto").randomBytes(32).toString("base64"))'Enter the complete
k1:…value when Render requests it. Store a copy in your password manager. Back up theOCMGR_AUTH_SECRETvalue that Render generates.Create the workspace and owner
Open the API service’s shell. Run the following commands.
ocmgr workspace create --name "My community" --json ocmgr admin user create --email [email protected] --workspace <id> --jsonOpen the returned
signInUrl.Check the installation
Check that
https://<your-service>.onrender.com/healthzresponds. Runocmgr doctor --jsonin the API shell. Resolve any failed checks.Wait for both workers’ first check-in, which takes up to five minutes. Run
ocmgr jobs status --jsonto confirm that both workers are live. Alternatively, readGET /v1/opswith an admin API key or callget_ops_statusthrough hosted MCP. See worker status examples for requests and warning states.
Automatic deployment is off. A push does not redeploy the instance. Billing and event delivery remain off until you configure them. The Blueprint contains a commented block for event delivery.
Configure off-site backups before you rely on this instance. Render provides no app disk.
Add a custom domain in Render if required. Set OCMGR_PUBLIC_URL to https://<your-domain> on all three services. Redeploy the services. Previously connected agents must reconnect once.
On Fly.io
deploy/fly/ contains configuration files for a Fly.io test instance. One app runs the API and core worker. Another runs the pieces worker. A private Postgres 17 Machine stores its data on a volume. A preparation script generates the configuration and secrets.
This configuration supports testing. The database has one node and volume snapshots. It has no managed Postgres service, replica or failover. The Fly runbook contains the complete procedure.
FAQ
Which should I choose?
Choose a VPS unless you need a managed database. CI checks the installer script for errors. Each month and for each release tag, CI also tests its Docker Compose installation on a clean machine. CI does not run the installer itself, so it does not test the firewall, --domain or a second run. Render does not add product capabilities.
Can I move between them later?
Yes. Each option runs the same image with Postgres. Migration requires a backup, a restore and the same configuration values.
Preserve OCMGR_AUTH_SECRET, OCMGR_MASTER_KEYS and OCMGR_PUBLIC_URL. Users can then retain their sessions and agent connections.
Is there a one-click hosted Datum?
Not yet. The hosted service does not accept sign-ups.