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.
By Simon Vasconcelos Lee
Published on 23 November 202611 minute read
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.ROMM_AUTH_SECRET_KEY in a .env file, set ROMM_BASE_URL to your public address and turn on ROMM_SESSION_SECURE_COOKIE.library/roms/<platform>, then a scan catalogues them.mariadb-dump and an archive of assets, config and resources. To update, change the image tag: RomM migrates its database when it starts.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.
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.
Here is what we measured on our test VPS, with 2 vCPU and 4 GB of memory, after the installation and a first scan:
WEB_SERVER_CONCURRENCY and SCAN_WORKERS, 4 by default, change the first figure.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.
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:
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:
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:
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
127.0.0.1: the reference file publishes the container’s port 8080 on port 80 of every address of the server. Published locally, RomM is reachable only through the reverse proxy, and port 80 stays free for it.DB_PASSWD, the MariaDB root password is a second one, and ROMM_AUTH_SECRET_KEY secures sessions and invitation links, generated with openssl rand -hex 32 as the documentation asks. Keep it stable: if it changes, every session and invite link is invalidated.ROMM_BASE_URL is your public address, with https://: RomM builds its invite links, QR codes and OIDC redirects from it.ROMM_SESSION_SECURE_COOKIE=true marks the session and CSRF cookies Secure, as the reference asks once RomM is served over HTTPS.library holds your games, assets the saves, states and screenshots of your users, and config the config.yml file, which RomM creates empty. The named volumes hold the database, the covers fetched by scans and the task queue.latest. A full version, here 5.4.1, lets you choose when each update happens. MariaDB 11.8 is the long-term release of the 11 series, the one shown on the Databases page.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:
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.
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:
romm.example.com {
reverse_proxy 127.0.0.1:8102
}
systemctl reload caddy
curl -sI https://romm.example.com/
HTTP/2 200, served by the nginx of the image through Caddy.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.
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.
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:
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.
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:
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.
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:
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.
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:
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":"[^"]*"'
5.4.1, and the game and the collection created in 5.4.0 were there.5.4.1-slim, is much smaller and fetches EmulatorJS and js-dos from a CDN, without the Flash, PICO-8 and RPG Maker players: change the tag the same way, no data migration is needed.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.
| Topic | Our teams | You |
|---|---|---|
| The server | System and security updates, server interventions included | The timing that suits you |
| Monitoring | Server monitored 24/7, with intervention without waiting for your call | Your games, your collections and your settings in RomM |
| RomM | Proactive monitoring: errors, slowdowns, database and disk space spotted, fix recommended | Its installation, updates, metadata providers and settings, which you apply, yourself or through your AI assistant |
| Users | The server that carries them, monitored and backed up | Accounts, invitations and permission groups |
| Backups | Every night, encrypted and kept off the machine; restores included | RomM’s own database dumps and file archives, and the restore request, when you need one |
| Migration | Your current server migrated, free of charge | The 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Simafri
Let's talk about your project
Tell us what you need in a few words: we will get back to you quickly.
Thank you! Your request has been sent. We'll get back to you shortly.
Prefer email? Write to us at support@simafri.com.