Skip to content

Set Up RomM on a Linux Server – Manage Your Own Game Library and Play in Your Browser

Set up RomM as a One-Click App or with Docker Compose on your VPS and manage your own game backups with covers and information, then play them in your browser.

1 December 202613 min read0 Views0 helpful

Introduction

RomM is a web interface for your own collection of game backups (ROMs). It detects the files in your library, assigns them to platforms such as Game Boy Advance, SNES, or PlayStation, fetches covers, descriptions, and screenshots from metadata services, and launches many games directly in your browser. It also includes collections, save files, multiple user accounts with permissions, and achievements through RetroAchievements.

This guide shows you two ways to get started: the easy way, as a One-Click App on your VPS, and manual installation with Docker Compose. You’ll also learn how to connect metadata sources such as IGDB and ScreenScraper so your games appear with covers and information.

Warning: Only use your own backups

RomM does not include games or download them. Only add ROMs, BIOS, and firmware files to your library that you legally own, such as backups you made of your own cartridges and discs, or freely released homebrew games. You are responsible for the files on your server. Do not make your library publicly accessible.

When RomM makes sense on a VPS

  • One collection for all your devices: Your backups are stored in one place and accessible in a browser from your PC, tablet, or phone, without copying them to each device.
  • Stay organized instead of dealing with file chaos: RomM detects platforms from folder names, checks files using checksums, and displays titles, covers, release years, and genres instead of cryptic filenames.
  • Play in your browser: For many older consoles, RomM launches games directly in your browser. You can store save files on the server and continue playing on another device.
  • Separate accounts for family or friends: Each person gets their own account with appropriate permissions, save files, and progress.
  • Always available: Unlike a NAS at home, a VPS runs around the clock with a fixed address and HTTPS.

A VPS is less suitable if your collection is very large (for example, many disc images from current consoles totaling several hundred gigabytes) or if you mainly want to play on your TV using a local emulator interface. In that case, a server on your own network is often a better choice. Browser performance for resource-intensive systems also depends on the capabilities of your device, not the server.

The easy way: RomM as a One-Click App

With your VPS’s One-Click Apps, RomM will be running at its own HTTPS address within a few minutes. The app creates the database and admin account for you. You don’t need to go through RomM’s setup wizard, which is never accessible to outside visitors.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See VPS: One-Click Apps for instructions.
  • At least 1 GB RAM, 1 vCPU core, and 3 GB of storage for the app itself. We recommend 2 GB RAM, 2 vCPU cores, and 10 GB of storage. You’ll also need space for your games: cartridges for older consoles are usually only a few megabytes, while disc images can quickly take up several gigabytes.
  • An address for RomM: either a free subdomain on zap.cloud or your own domain, such as games.example.com.

Install

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search for “RomM” in the App catalog and click Install app next to RomM.
  3. Under App name, enter a name and leave Use a custom subdomain or zap.cloud enabled. Choose the address where you want RomM to be available.
  4. You don’t need to enter anything under App configuration. The app generates passwords for the database, sessions, and admin account itself.
  5. Optional: If you already have API credentials for metadata services, enter them under Custom environment variables by clicking Add variable, for example IGDB_CLIENT_ID and IGDB_CLIENT_SECRET. You can also do this later; see “Set up metadata sources.”
  6. Click Queue installation.

The app first downloads its images and sets up the database on first launch. This takes a few minutes. Open the sign-in page using the Access link on the app card. If the address initially shows an error (502), even though the card already says Online, RomM isn’t ready yet. Reload the page after a minute or two.

First login: find your credentials

The app creates the admin account before its first launch. Under Login, the app card notes that the username is fixed, but doesn’t specify it. It is always:

  • Username: admin
  • Password: In the app settings (gear icon), go to App environment > Automatically generated values and find the SERVICE_PASSWORD_ROMMADMIN field. Click the eye icon to show it or the copy icon to copy it.

Sign in to RomM using these credentials. After logging in, RomM welcomes you to an empty library and offers two ways to add games.

Info: Change your password and add more accounts

Set your own password and email address by clicking your profile picture in the top-right corner > Profile. The value in the app environment will no longer apply. Add more accounts under Administration > Users, either as a regular user or an admin. Set what regular users can do (for example, play games only or also edit the library) under Administration > Permission Groups. The other fields under Automatically generated values are database passwords and the session login key. Don’t change them.

Upload and scan games

RomM expects games in folders for each platform, for example roms/gba/ for Game Boy Advance or roms/snes/ for Super Nintendo. Folder names must match the abbreviations in RomM’s platform list. You can use the browser for individual files; SFTP is better for many or large files.

Upload individual games through your browser: On the home page, click Upload games or Upload ROMs on the left, choose the platform, and drag the files onto the page. RomM puts them in the correct folder and scans them afterward. Upload games with multiple discs using SFTP, not the browser.

Upload many games using SFTP: The library is stored on your VPS in a Docker volume whose name ends in _romm-library. Find the exact path over SSH:

Code
docker volume ls | grep romm-library
docker volume inspect --format '{{ .Mountpoint }}' VOLUME_NAME

The path looks like this: /var/lib/docker/volumes/<id>_romm-library/_data. Create a roms folder there with a subfolder for each platform, then copy your files over using SFTP, for example to .../_data/roms/gba/. See VPS: Connect using SFTP for instructions on connecting over SFTP.

Then click Scan on the left in RomM, leave Quick scan selected, and click Scan. RomM will show you live which platforms and games it found.

If a game is marked Not identified, none of the metadata sources recognized the file. By default, only sources that don’t require an API key are enabled, especially the free checksum lookup through Hasheous. RomM can recognize many more games when you add your own API credentials; see “Set up metadata sources.”

Updates and backups

  • Update the app: In the app settings (gear icon) > App update, click Check for updates to see whether a new app version is available, then install it using Apply update. When it starts, RomM automatically updates the database to the new version. Your games, accounts, and save files will be preserved.
  • Change settings: Save any new or changed values under Custom environment variables by clicking Save. The app will restart automatically and apply them.
  • Back up: A VPS backup from the Backups tab also includes all of the app’s volumes: the database (accounts, metadata, collections), romm-assets (save files, uploaded screenshots), romm-config (configuration file), and romm-library (your games). Keep a separate copy of your games as well.
  • Uninstall: Under App actions > Uninstall app, you can also delete the data volumes. This permanently deletes the games in your library and all save files.

Manual installation

The rest of this guide describes manual installation of RomM with Docker Compose, for example on a server without One-Click Apps. You’ll run RomM and MariaDB in containers, initially make RomM accessible only locally, create the admin account through an SSH tunnel, and then make RomM accessible through nginx with a Let’s Encrypt certificate.

Requirements

MinimumRecommended
CPU1 vCPU core2 vCPU cores
RAM1 GB2 GB
Storage3 GB10 GB, plus space for your games

You’ll also need:

Prepare the firewall

RomM only needs web ports accessible from the internet. Allow SSH, HTTP, and HTTPS in ufw:

Code
sudo apt install -y ufw
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable

Do not open RomM’s port (8080). Docker bypasses ufw rules for published ports, so bind it to 127.0.0.1 in the Compose file. See VPS: Open ports and manage the firewall on Linux for more about firewall rules.

Install with Docker Compose

Create a folder with subfolders for the library, save files, and configuration, then create a .env file with random passwords and the session key:

Code
sudo mkdir -p /opt/romm/library/roms /opt/romm/assets /opt/romm/config
cd /opt/romm
echo "DB_PASSWD=$(openssl rand -hex 16)" | sudo tee .env
echo "DB_ROOT_PASSWD=$(openssl rand -hex 16)" | sudo tee -a .env
echo "ROMM_AUTH_SECRET_KEY=$(openssl rand -hex 32)" | sudo tee -a .env
sudo chmod 600 .env

Then create /opt/romm/docker-compose.yml:

Code
services:
  romm:
    image: rommapp/romm:5.4
    restart: unless-stopped
    environment:
      - DB_HOST=romm-db
      - DB_NAME=romm
      - DB_USER=romm-user
      - DB_PASSWD=${DB_PASSWD}
      - ROMM_AUTH_SECRET_KEY=${ROMM_AUTH_SECRET_KEY}
      - HASHEOUS_API_ENABLED=true
    volumes:
      - romm-resources:/romm/resources
      - romm-redis-data:/redis-data
      - ./library:/romm/library
      - ./assets:/romm/assets
      - ./config:/romm/config
    ports:
      - "127.0.0.1:8080:8080"
    depends_on:
      romm-db:
        condition: service_healthy

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

volumes:
  romm-resources:
  romm-redis-data:
  romm-db:

The important lines:

  • rommapp/romm:5.4 keeps RomM on version 5.4 and includes fixes for that version. Upgrade to a new major version deliberately; see “Update RomM.”
  • ROMM_AUTH_SECRET_KEY secures login sessions. RomM won’t start without this value. Don’t change it later, or all users will be signed out.
  • HASHEOUS_API_ENABLED=true enables free checksum-based identification. Add other sources as described in “Set up metadata sources.”
  • ./library is your game library, with the roms subfolder. ./assets contains save files and uploads, while ./config contains the config.yml file.
  • 127.0.0.1:8080:8080 makes RomM accessible only from the server itself. It can only be accessed externally through the reverse proxy.
  • The database doesn’t have a published port and is only accessible to RomM.

Start the containers:

Code
sudo docker compose up -d
sudo docker compose logs -f romm

On first launch, RomM creates the database. RomM is ready when Starting nginx appears in the log. Press Ctrl+C to exit the log view.

First access and creating the admin account

Warning: Never leave the setup wizard open to the internet

Until an admin account exists, anyone who can access RomM can create an admin account for themselves. Create the account through an SSH tunnel before making RomM available on your domain.

Open an SSH tunnel on your own computer:

Code
ssh -L 8080:127.0.0.1:8080 root@SERVER_IP

Then go to http://localhost:8080 in your browser. RomM opens the Setup Wizard. Choose a username (letters, numbers, -, and _ only), your email address, and a strong password. The first account is always assigned the Admin role. The wizard then closes, and only an admin can create new accounts.

Access over HTTPS through a reverse proxy

Install nginx and Certbot:

Code
sudo apt install -y nginx certbot python3-certbot-nginx

Create /etc/nginx/sites-available/romm:

Code
server {
    listen 80;
    server_name games.example.com;

    client_max_body_size 0;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_read_timeout 600s;
    }
}

client_max_body_size 0 removes the upload size limit. Otherwise, uploading larger games fails with “413 Request Entity Too Large.” RomM needs the two lines with Upgrade and Connection to show live scan progress.

Enable the site and get the certificate:

Code
sudo ln -s /etc/nginx/sites-available/romm /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d games.example.com

Then add the line - ROMM_SESSION_SECURE_COOKIE=true under environment in the Compose file so the browser only sends the login cookie over HTTPS, and restart with sudo docker compose up -d. For an introduction to nginx and certificates, see VPS: Set up a reverse proxy with nginx on Linux and VPS: Create an SSL certificate (Let’s Encrypt) for Linux servers.

For a manual installation, copy your games over SFTP to /opt/romm/library/roms/<platform>/, then start a scan in RomM.

Back up your data

The important data is the database, assets (save files), and config. Back up the database while it’s running by creating a dump:

Code
cd /opt/romm
sudo docker compose exec romm-db sh -c 'mariadb-dump -u romm-user -p"$MARIADB_PASSWORD" --single-transaction --databases romm' > romm-db-$(date +%F).sql
sudo tar czf romm-files-$(date +%F).tar.gz assets config .env docker-compose.yml

Back up your games under library separately, for example by using rsync to another system. You don’t need to back up covers and screenshots in the romm-resources volume; RomM downloads them again when you scan. Don’t keep your backups only on the same server.

Update RomM

Create a backup before every update. To get bug fixes within version 5.4, run:

Code
cd /opt/romm
sudo docker compose pull
sudo docker compose up -d

When RomM starts, it automatically updates the database. To move to a new major version, change the image: rommapp/romm:5.4 line to the new version, read the release notes for that version on GitHub, and then run the same two commands.

Set up metadata sources

Without metadata, RomM only displays filenames and placeholders. A metadata source provides titles, covers, descriptions, and screenshots. RomM checks the sources in order when scanning. You can see which ones are enabled under Metadata sources on the left.

Which source should you use?

SourceProvidesAccess
HasheousTitles, descriptions, and covers based on the file checksumFree, no account required, variable HASHEOUS_API_ENABLED=true
IGDBExtensive data, screenshots, related gamesFree Twitch account with a phone number, IGDB_CLIENT_ID and IGDB_CLIENT_SECRET
ScreenScraperData, covers, 3D boxes, manualsFree ScreenScraper account, SCREENSCRAPER_USER and SCREENSCRAPER_PASSWORD
SteamGridDBAlternative high-quality coversSteam account, STEAMGRIDDB_API_KEY
RetroAchievementsAchievements and progressFree account, RETROACHIEVEMENTS_API_KEY

For most people, Hasheous and IGDB are a good combination. If you don’t want a Twitch account, use ScreenScraper. MobyGames is also an option, but API access there is paid.

Get API credentials

  • IGDB: Sign in to the Twitch Developer Console (two-factor authentication with a phone number is required) and register an application. Choose a unique name, such as romm- followed by a random string, set the OAuth Redirect URL to http://localhost, select Application Integration as the category, and select Confidential as the client type. You’ll then see the Client ID and can create a Client Secret using New Secret.
  • ScreenScraper: Create an account at screenscraper.fr. Your account username and password are your credentials.
  • SteamGridDB: Sign in to steamgriddb.com with Steam and copy the key under Preferences > API.
  • RetroAchievements: Copy the Web API Key from your account settings on retroachievements.org. Each person then enters their own RetroAchievements username in RomM under Profile.
Info: Treat keys like passwords

These credentials are linked to your personal account with each service. Don’t share them, and only enter them in RomM’s environment variables.

Add your keys

  • One-Click App: Open the app’s gear icon > App environment, click Add variable under Custom environment variables, enter the name and value (for example, IGDB_CLIENT_ID), then click Save. The app will restart and apply the values.
  • Manual installation: Add the variables under environment in docker-compose.yml and restart with sudo docker compose up -d.

Once a source is set up, Metadata sources will no longer show “API key missing!” for it. Then go to Scan and start a scan with the Unmatched type. It checks only games that haven’t been identified yet.

Tip: Clear filenames make identification easier

RomM identifies clear filenames such as Game Name (Europe).gba much more reliably than game1.gba. If a game remains unidentified, you can manually assign it to a source using the edit icon on its detail page.

Playing in your browser and limitations

Open identified games from the home page or Platforms. On a game’s detail page, click the Play button to launch supported games directly in your browser. Keyboard and gamepad controls work, and RomM saves each account’s progress on the server. For other games, download them from their detail page and play them in an emulator on your device.

Limitations

  • Performance depends on your device: Emulation runs in your browser. A faster server won’t make games for more demanding systems run more smoothly.
  • Some systems require BIOS files: Some consoles only launch in the browser if you provide the correct firmware. You must provide it yourself. The same rule applies: use only files you own legally.
  • Large collections need storage: Disc images can quickly take up many gigabytes. Check the free storage on your VPS before uploading.
  • No email delivery by default: Without an SMTP server configured, RomM won’t send emails, including password reset emails. An admin can reset forgotten passwords under Administration > Users.

Conclusion

RomM keeps your own game backups organized in one place, with covers and information, and lets you play in your browser on any device. The quickest way to get started is with the One-Click App: your admin account, database, and HTTPS are ready within minutes. Then upload your games, add one or two metadata sources, and start your first scan.

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

For most people, the One-Click App is the faster option: RomM will be available at your address over HTTPS within minutes, the database and admin account are set up, and the setup wizard is never accessible to outsiders. Manual installation with Docker Compose is a good choice if you’re running RomM on a server without One-Click Apps or want the library to be a regular folder on the server.
For the One-Click App, the username is always admin. The app card doesn’t show it; it only notes that the username is fixed. Find the password in the app settings (gear icon) under App environment > Automatically generated values, in the SERVICE_PASSWORD_ROMMADMIN field. With a manual installation, you create the admin account yourself in the setup wizard, preferably through an SSH tunnel.
No, RomM works without them. However, without a metadata source it will identify only a few games and otherwise show filenames without covers. The free checksum lookup through Hasheous doesn’t require a key. To identify more games, create a free account with IGDB (through a Twitch account) or ScreenScraper and add the credentials as environment variables.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.