Skip to content
Rather not run it yourself? OpenRMM Cloud hosts it for you.

Quick start: the published images

This runs OpenRMM on one Linux server from the release images on ghcr.io/openrmm-project, with Caddy obtaining the TLS certificates. It is the deployment that README-production.md describes, with prebuilt images and an optional TLS edge. Read that guide for backups, point-in-time recovery, a warm standby and upgrades.

  • A Linux x86-64 server with Docker Engine and Docker Compose 2.24 or later.
  • Three DNS names pointing at it, for example agents.rmm.example.com, console.rmm.example.com and mcp.rmm.example.com.
  • Ports 80 and 443 open to the internet, for the certificates and the agents.
  • git and openssl.
Terminal window
git clone https://github.com/openrmm-project/openrmm.git
cd openrmm/deploy

docker-compose.images.yml pins the release images. The deploy/ files of the same checkout are the ones that go with them.

Clone main, as above. A release’s tag, and the “Source code” archives on its release page, are made before that release’s images are built, so their docker-compose.images.yml still pins the previous release. To install one release exactly, check out its tag and replace docker-compose.images.yml with the one attached to its release page.

Terminal window
cp .env.example .env

In .env, set these lines. Some of them replace values the example already has; others are commented out in it.

Terminal window
RMM_PUBLIC_URL=https://agents.rmm.example.com
RMM_MCP_PUBLIC_URL=https://mcp.rmm.example.com
# The key the release's agents and installers are signed with. With the
# published images, use exactly this value.
RMM_UPDATE_PUBLIC_KEY=MhH1ZCiPzlPMvHUBrx52yZ49Co2KlutYNC913Zkq0L0=
# The key of the release manifest's second signature. The console adds it to
# the Linux/macOS install commands, so a Mac without OpenSSL 3 can install.
RMM_MANIFEST_PUBLIC_KEY=MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEJjrsgG3GOZkXpGq6ITp4qlsRjYD5cCeJpKduel59AQlQgNYqePBMNqykk/sz+1XhuoJoOpw3MVDMxR03hchteA==
COMPOSE_FILE=docker-compose.prod.yml:docker-compose.images.yml:docker-compose.caddy.yml
AGENTS_HOST=agents.rmm.example.com
CONSOLE_HOST=console.rmm.example.com
MCP_HOST=mcp.rmm.example.com
ACME_EMAIL=you@example.com
# Recommended: let only your office or VPN reach the console. List its IPv6
# prefix too, if it has one.
# CONSOLE_ALLOWED_RANGES=203.0.113.0/24 2001:db8::/32

Then create the secrets: random values, kept in secrets/, which git ignores.

Terminal window
ops/provision-secrets.sh
Terminal window
docker compose pull
docker compose up -d
docker compose ps

The first start takes about a minute: Caddy obtains the certificates, and the server creates the database.

Run this on the server, in the deploy folder. It goes to the console’s local port, 127.0.0.1:9443, not through Caddy, so it works before the certificates are ready and whatever CONSOLE_ALLOWED_RANGES allows. The admin token works for this exactly once, while the console has no users.

Terminal window
read -rsp 'Admin password (12+ characters, an uppercase letter and a symbol; no double quotes): ' PW; echo
curl -fsS -X POST http://127.0.0.1:9443/api/auth/bootstrap \
-H "Authorization: Bearer $(cat secrets/admin_token)" \
-H 'Content-Type: application/json' \
-d "{\"username\":\"admin\",\"password\":\"$PW\"}" >/dev/null && echo created
unset PW

The request never leaves the server, so it needs no TLS. If you set CONSOLE_BIND_ADDRESS or CONSOLE_PORT in .env, use that address and port.

Then:

  1. Sign in at https://console.rmm.example.com.
  2. Turn on two-step verification for your account.
  3. Optionally, set an AI provider under Users & Settings ▸ Configuration.
  1. In the console, open Enroll new agents and generate a token.
  2. Copy the install command for Windows, Linux or macOS. The release key is already in it.

Agents install from https://agents.rmm.example.com and update themselves from there, and they check every file against the release key.

  1. Take a backup first (README-production.md, section 7).

  2. Update the checkout and the containers:

    Terminal window
    git pull
    docker compose pull
    docker compose up -d

Shortly after each release, main moves the pinned images in docker-compose.images.yml to it, and the server migrates the database when it starts.

If you already run nginx, Traefik, a tunnel or a load balancer:

  1. Leave docker-compose.caddy.yml out of COMPOSE_FILE.
  2. Point the edge at the loopback doors:
    • agents: 127.0.0.1:8443;
    • console: 127.0.0.1:9443;
    • MCP: 127.0.0.1:7443.

README-production.md, section 3, lists what the edge has to forward.

The server stops with “password authentication failed” (SQLSTATE 28P01)

Section titled “The server stops with “password authentication failed” (SQLSTATE 28P01)”

This section is for the setup above, where the server signs in as the database owner with secrets/postgres_password. A role you created yourself, such as openrmm_app, keeps the password you gave it.

PostgreSQL takes secrets/postgres_password only when it creates its data volume. A volume left by an earlier attempt keeps that attempt’s password, and docker compose up reuses it. The volumes belong to the Compose project openrmm, not to the folder, so deleting the checkout or secrets/ leaves them in place. With COMPOSE_PROJECT_NAME set, the volume names below start with that name instead.

If the data volume was created before the password file, this is the cause. Compare the two dates:

Terminal window
docker volume inspect -f '{{.CreatedAt}}' openrmm_rmm_pgdata
date -u -r secrets/postgres_password '+%Y-%m-%dT%H:%M:%SZ'

On a new installation with nothing to keep, delete the database volumes and start again. This erases the database. Caddy’s volumes stay, so the certificates are not requested again:

Terminal window
docker compose down
docker volume rm openrmm_rmm_pgdata openrmm_rmm_pgwal
docker compose up -d

If the database holds data, put back the secrets/postgres_password it was created with, from your backup, instead.

Step 4 fails with “Failed to connect to 127.0.0.1 port 9443”

Section titled “Step 4 fails with “Failed to connect to 127.0.0.1 port 9443””

The console’s local port opens once the server and the console are healthy. Run docker compose ps, and read the log of the first service that is not running: docker compose logs server, then docker compose logs frontend.

Step 4 fails with “The requested URL returned error: 403”

Section titled “Step 4 fails with “The requested URL returned error: 403””

The console already has a user, and the admin token creates only the first one. Sign in with an existing account, or have an administrator create yours.

Caddy refuses every address outside CONSOLE_ALLOWED_RANGES before the console sees the request. List the addresses your browsers connect from, as the server sees them: usually your office’s public IPv4 address, and its IPv6 prefix if it has one. Without the IPv6 prefix, browsers that connect over IPv6 are refused. A request made on the server itself, through the console’s name, does not come from an office address either, which is why step 4 uses the local port. MCP_ALLOWED_RANGES works the same way for the MCP name.

Caddy starts only after the server and the console are healthy, so nothing listens on port 443 until then. Run docker compose ps, and read the log of the first service that is not running (docker compose logs server, then docker compose logs caddy). For the certificates, the three names must resolve to this server, ports 80 and 443 must be reachable from the internet, and no other program on the host may use them. A server reachable only inside your network cannot pass Let’s Encrypt’s check: use your own TLS edge instead (above).

  • .env and secrets/ hold this installation’s secrets. Git ignores both: never copy them into the repository or into a ticket.
  • Back up secrets/settings_encryption_key. Without it, the settings the console stores encrypted (SMTP and AI keys) cannot be read.
  • The admin token is for the first bootstrap and for emergencies. Day-to-day work uses console accounts.
  • The server connects to PostgreSQL as the database owner, and says so in its log at every start. For an audit trail the server itself cannot erase, run it as the restricted openrmm_app role (README-production.md, section 6).