Self-host RomM on a managed VPS: your retro game library

To self-host RomM on a managed VPS is to keep your game library, your saves and your play history on a server of your own, which our teams keep up to date and monitor day and night. RomM is a free, open source ROM manager under the AGPL-3.0 license: it scans your games, fetches their covers and metadata, and lets you play many of them in the browser. This guide follows its reference Docker Compose file at version 5.4.1, and we ran every command on a Simafri VPS before writing it: installation with MariaDB, HTTPS, the first account, a first scan, backups, a restore and an upgrade.

Simon Vasconcelos Lee By Published on 23 November 202611 minute read

All guides

In short

  1. The AGPL-3.0 license lets you run RomM for yourself, your family or your club with no license to buy; the games you add are yours to own.
  2. Install it with Docker Compose: the image rommapp/romm pinned to 5.4.1 and MariaDB 11.8, with port 8080 of the container published on 127.0.0.1 behind an HTTPS reverse proxy.
  3. Put the two database passwords and ROMM_AUTH_SECRET_KEY in a .env file, set ROMM_BASE_URL to your public address and turn on ROMM_SESSION_SECURE_COOKIE.
  4. The first account, created in the setup wizard, is the administrator. Games go in library/roms/<platform>, then a scan catalogues them.
  5. Back up with mariadb-dump and an archive of assets, config and resources. To update, change the image tag: RomM migrates its database when it starts.

What RomM does

RomM, for ROM Manager, is a web application that turns a folder of game files into a browsable library. It has metadata for more than 400 platforms, from home consoles and handhelds to computers and arcade boards, and it keeps everyone’s progress on the server.

RomM does not supply games: you bring the files you own, and homebrew titles published by their authors are a good way to start.

What the AGPL-3.0 license allows

RomM is published under the GNU Affero General Public License, version 3 (AGPL-3.0). You can use it free of charge, copy it and modify it. If you modify it and let other people use your version over a network, you offer them its source code under the same license. Running the official image unchanged, as this guide does, asks nothing more of you. The software is provided without warranty.

The resources to plan for

Here is what we measured on our test VPS, with 2 vCPU and 4 GB of memory, after the installation and a first scan:

Server size therefore depends on the size of your library, the number of users and the other applications you run beside RomM. On a managed VPS, tell us about your collection and we will recommend the right size, disk included.

Installing with Docker Compose

The image, rommapp/romm, contains the web interface, the API, the scan and task workers, nginx and an embedded Valkey, the in-memory store RomM needs. It needs MariaDB, MySQL or PostgreSQL beside it, and MariaDB is the default of the documentation. On a server with Docker Engine and its Compose plugin, installed from Docker’s repository for Ubuntu, create the folders of the library, the assets and the configuration:

Terminal, as root
mkdir -p /opt/romm/library/roms /opt/romm/assets /opt/romm/config

Then put this compose.yaml in /opt/romm, based on the reference file of the Quick Start:

compose.yaml
services:
  romm:
    image: rommapp/romm:5.4.1
    container_name: romm
    restart: unless-stopped
    environment:
      - DB_HOST=romm-db
      - DB_NAME=romm
      - DB_USER=romm-user
      - DB_PASSWD=${DB_PASSWD:?set DB_PASSWD in .env}
      - ROMM_AUTH_SECRET_KEY=${ROMM_AUTH_SECRET_KEY:?set ROMM_AUTH_SECRET_KEY in .env}
      - ROMM_BASE_URL=https://romm.example.com
      - ROMM_SESSION_SECURE_COOKIE=true
      - HASHEOUS_API_ENABLED=true
      - IGDB_CLIENT_ID=${IGDB_CLIENT_ID:-}
      - IGDB_CLIENT_SECRET=${IGDB_CLIENT_SECRET:-}
      - SCREENSCRAPER_USER=${SCREENSCRAPER_USER:-}
      - SCREENSCRAPER_PASSWORD=${SCREENSCRAPER_PASSWORD:-}
      - RETROACHIEVEMENTS_API_KEY=${RETROACHIEVEMENTS_API_KEY:-}
      - STEAMGRIDDB_API_KEY=${STEAMGRIDDB_API_KEY:-}
    volumes:
      - romm_resources:/romm/resources
      - romm_redis_data:/redis-data
      - ./library:/romm/library
      - ./assets:/romm/assets
      - ./config:/romm/config
    ports:
      - "127.0.0.1:8102:8080"
    depends_on:
      romm-db:
        condition: service_healthy
        restart: true

  romm-db:
    image: mariadb:11.8
    container_name: romm-db
    restart: unless-stopped
    environment:
      - MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD:?set MARIADB_ROOT_PASSWORD in .env}
      - MARIADB_DATABASE=romm
      - MARIADB_USER=romm-user
      - MARIADB_PASSWORD=${DB_PASSWD:?set DB_PASSWD in .env}
    volumes:
      - mysql_data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
      start_period: 30s
      start_interval: 10s
      interval: 10s
      timeout: 5s
      retries: 5

volumes:
  mysql_data:
  romm_resources:
  romm_redis_data:

The three secrets go in a .env file next to it, which Docker Compose reads on its own. Create it readable by root only, then start the stack:

Terminal, in /opt/romm
umask 077
printf 'DB_PASSWD=%s\nMARIADB_ROOT_PASSWORD=%s\nROMM_AUTH_SECRET_KEY=%s\n' "$(openssl rand -hex 24)" "$(openssl rand -hex 24)" "$(openssl rand -hex 32)" > .env
umask 022
docker compose up -d
docker compose ps

On its first start, RomM creates its tables, then starts its workers. On our test VPS, it answered about 30 seconds after its container started. To check that it is ready:

Terminal, in /opt/romm
curl -s http://127.0.0.1:8102/api/heartbeat | grep -o -E '"VERSION":"[^"]*"|"SHOW_SETUP_WIZARD":(true|false)'

The answer gives the version, "VERSION":"5.4.1", and "SHOW_SETUP_WIZARD":true as long as no administrator exists.

HTTPS: the reverse proxy

The container serves RomM over HTTP, on port 8102 of the server. HTTPS is handled by a reverse proxy in front of it, which is also what OIDC sign-in and installing RomM as an app on a phone require. We tested Caddy, installed from its official Debian and Ubuntu repository: it obtains the Let’s Encrypt certificate itself, renews it, forwards the WebSocket connections RomM uses for scans, and sets no limit on upload size. Add this block to its configuration:

/etc/caddy/Caddyfile
romm.example.com {
	reverse_proxy 127.0.0.1:8102
}
Terminal, as root
systemctl reload caddy
curl -sI https://romm.example.com/

The first account and your games

Open your address: RomM shows its setup wizard. It looks at the library folder, offers to create folders for the platforms you choose, then asks for a username, an email address and a password. That first account is the administrator. On our test VPS, we created it with the same request the wizard sends, after which the heartbeat answered "SHOW_SETUP_WIZARD":false and the administrator signed in.

Adding games

Games go in /opt/romm/library/roms, one folder per platform, named after a slug of the Supported Platforms page: gb for Game Boy, snes, psx, and so on. The folder names of Batocera, RetroBat and ES-DE are recognized too. Copy your files to the server over SFTP with the SSH access of your VPS, or upload a few through the upload dialog in the browser. BIOS files, for the platforms that need them, go in /opt/romm/library/bios/<platform>.

Then run a scan from the web interface, in Quick mode for the first one, which skips the games already catalogued. On our test VPS, we placed a 32 KB test file in library/roms/gb and started a quick scan through the API, POST /api/tasks/scan, the route RomM offers to scripts: it finished in about a second, with one platform and one game added. We then created a collection and uploaded a save for that game, to check the backups further down.

Metadata providers

Hasheous needs no account. For better matching, covers and descriptions, the documentation recommends adding at least one provider that takes a key, each registered on its own site: IGDB, ScreenScraper, RetroAchievements or SteamGridDB, already wired in compose.yaml. Put the values in .env, one per line, such as SCREENSCRAPER_USER= and SCREENSCRAPER_PASSWORD=, then recreate the container:

Terminal, in /opt/romm
docker compose up -d

On our VPS, a line added to .env reached the container after this command. Another provider, such as MobyGames with MOBYGAMES_API_KEY, takes a line of the same form in the environment of the romm service. An Unmatched scan then fetches metadata for the games already catalogued.

Backups

RomM keeps your data in five places: the MariaDB database, with accounts, collections, ratings and play sessions; the assets folder, with your users’ saves, states and screenshots; the config folder; the romm_resources volume, with the covers that a rescan could fetch again but faster to restore; and your .env file. The games of library are your source files: keep a copy of them separately. With a umask of 077, the copies are readable by root only:

Terminal, in /opt/romm
umask 077
export MYSQL_PWD=$(grep ^DB_PASSWD= .env | cut -d= -f2)
docker compose exec -T -e MYSQL_PWD romm-db mariadb-dump --single-transaction -u romm-user romm > romm-$(date +%F).sql
docker compose exec -T romm tar -C /romm -czf - assets config resources > files-$(date +%F).tar.gz
cp .env env-$(date +%F).bak
umask 022

The database password is read from .env and passed to the container in the MYSQL_PWD variable, so it never appears on a command line. Schedule this copy and send it off the server. Stored on the disk, the files are also included in the server’s nightly backups.

Restoring

On the same installation, or on a new one with the same compose.yaml and .env, stop RomM, empty the database by dropping and recreating it, load the dump, put the files back, then start it again:

Terminal, in /opt/romm
export MYSQL_PWD=$(grep ^DB_PASSWD= .env | cut -d= -f2)
docker compose stop romm
docker compose exec -T -e MYSQL_PWD romm-db mariadb -u romm-user -e "DROP DATABASE romm; CREATE DATABASE romm"
docker compose exec -T -e MYSQL_PWD romm-db mariadb -u romm-user romm < romm-2026-11-20.sql
docker compose run --rm --no-deps -T --entrypoint tar romm -C /romm -xzf - < files-2026-11-20.tar.gz
docker compose up -d

Without --force, the mariadb client stops at the first error. We tested the whole cycle on our VPS: the database dropped and recreated with no table left, the assets, config and resources emptied, then the restore. The administrator signed in again, and the game, the collection and the save came back, the save file identical to the byte.

Updates

RomM publishes its releases on GitHub, and the image follows on Docker Hub with the same numbers; tags such as 5.5.0-alpha.3 or nightly are previews. This guide pins 5.4.1, the latest release when we tested it: check the releases page for a newer one before you install. RomM runs its database migrations each time it starts. Take a backup, change the image tag in compose.yaml, then pull the new image and recreate the container:

Terminal, in /opt/romm
docker compose pull
docker compose up -d
docker compose logs romm --since 2m | grep -E "migrations"
curl -s http://127.0.0.1:8102/api/heartbeat | grep -o -E '"VERSION":"[^"]*"'

Who does what on a managed VPS

Self-hosting means running the server on top of the application. On a managed VPS, our teams take charge of the server and proactively monitor your instance; RomM remains your software, with your library and your settings.

TopicOur teamsYou
The serverSystem and security updates, server interventions includedThe timing that suits you
MonitoringServer monitored 24/7, with intervention without waiting for your callYour games, your collections and your settings in RomM
RomMProactive monitoring: errors, slowdowns, database and disk space spotted, fix recommendedIts installation, updates, metadata providers and settings, which you apply, yourself or through your AI assistant
UsersThe server that carries them, monitored and backed upAccounts, invitations and permission groups
BackupsEvery night, encrypted and kept off the machine; restores includedRomM’s own database dumps and file archives, and the restore request, when you need one
MigrationYour current server migrated, free of chargeThe timing of the switch

If you would rather have our teams work inside the application itself, that service is billed by the hour or at a fixed rate, with an estimate shared before the work starts.

RomM, on a server run for you

With a Simafri Managed VPS, our teams keep your RomM instance’s server up to date, monitor it day and night and step in without waiting for your call; they also proactively monitor your instance and recommend useful fixes, which you apply, yourself or through your AI assistant. Backups are encrypted every night and kept off the machine, restores are included, and migrating your current server is free.

Explore Managed VPS

Frequently asked questions

Is RomM free?

Yes. RomM is under the AGPL-3.0 license: you can run it for yourself, your family or your club with no license to buy. Some metadata providers ask for a free account to give you a key. What remains is the cost of the server that runs it.

How do I install RomM with Docker Compose?

Use the rommapp/romm image and MariaDB 11.8 in a compose.yaml, with library, assets and config folders next to it. Put the two database passwords and ROMM_AUTH_SECRET_KEY in a .env file, set ROMM_BASE_URL to your https address, publish the container port 8080 on 127.0.0.1, run docker compose up -d, and put an HTTPS reverse proxy in front.

How do I create the first RomM user?

On the first start, RomM opens its setup wizard at your address. It offers to create platform folders, then asks for a username, an email address and a password. The first account created is the administrator, who then invites the other users.

Where do I put my ROMs?

In library/roms on the server, one folder per platform named after a slug of the Supported Platforms page, such as gb, snes or psx. Copy them over SFTP or upload a few in the browser, then run a scan from the web interface.

How much memory does RomM need?

On our test VPS, the RomM container used about 980 MB at rest and MariaDB about 170 MB. WEB_SERVER_CONCURRENCY and SCAN_WORKERS, 4 by default, change the first figure. Plan the disk for your library, its covers and your saves.

How do I back up RomM in Docker?

Dump the database with mariadb-dump from the MariaDB container, archive /romm/assets, /romm/config and /romm/resources from the RomM container, and keep a copy of your .env file. Restore the dump into an emptied database and the archive with tar, RomM stopped.

How do I update RomM in Docker?

Take a backup, change the image tag in compose.yaml, then run docker compose pull and docker compose up -d. RomM runs its database migrations when it starts, and the heartbeat at /api/heartbeat gives the new version.

Does a managed VPS cover RomM?

A managed VPS covers the server: system, security, monitoring and backups. Our teams also proactively monitor your instance and recommend useful fixes, which you apply. Work inside the application is billed by the hour or at a fixed rate.

Contact us