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.
What you need
Section titled “What you need”- 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.comandmcp.rmm.example.com. - Ports 80 and 443 open to the internet, for the certificates and the agents.
gitandopenssl.
1. Get the deployment files
Section titled “1. Get the deployment files”git clone https://github.com/openrmm-project/openrmm.gitcd openrmm/deploydocker-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.
2. Configure
Section titled “2. Configure”cp .env.example .envIn .env, set these lines. Some of them replace values the example already
has; others are commented out in it.
RMM_PUBLIC_URL=https://agents.rmm.example.comRMM_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.ymlAGENTS_HOST=agents.rmm.example.comCONSOLE_HOST=console.rmm.example.comMCP_HOST=mcp.rmm.example.comACME_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::/32Then create the secrets: random values, kept in secrets/, which git ignores.
ops/provision-secrets.sh3. Start
Section titled “3. Start”docker compose pulldocker compose up -ddocker compose psThe first start takes about a minute: Caddy obtains the certificates, and the server creates the database.
4. Create the first administrator
Section titled “4. Create the first administrator”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.
read -rsp 'Admin password (12+ characters, an uppercase letter and a symbol; no double quotes): ' PW; echocurl -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 createdunset PWThe 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:
- Sign in at
https://console.rmm.example.com. - Turn on two-step verification for your account.
- Optionally, set an AI provider under Users & Settings ▸ Configuration.
5. Add devices
Section titled “5. Add devices”- In the console, open Enroll new agents and generate a token.
- 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.
Upgrading
Section titled “Upgrading”-
Take a backup first (README-production.md, section 7).
-
Update the checkout and the containers:
Terminal window git pulldocker compose pulldocker 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.
Using your own TLS edge
Section titled “Using your own TLS edge”If you already run nginx, Traefik, a tunnel or a load balancer:
- Leave
docker-compose.caddy.ymlout ofCOMPOSE_FILE. - 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.
- agents:
README-production.md, section 3, lists what the edge has to forward.
Troubleshooting
Section titled “Troubleshooting”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:
docker volume inspect -f '{{.CreatedAt}}' openrmm_rmm_pgdatadate -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:
docker compose downdocker volume rm openrmm_rmm_pgdata openrmm_rmm_pgwaldocker compose up -dIf 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.
The console answers 403
Section titled “The console answers 403”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.
The console does not open in the browser
Section titled “The console does not open in the browser”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).
Keep it private
Section titled “Keep it private”.envandsecrets/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_approle (README-production.md, section 6).
