Why move Rocket.Chat from Snap to Docker Compose
If your Rocket.Chat runs from a Snap install, the core answer is that you need to move it onto a Docker Compose deployment before it falls further behind, because the Snap package bundles a Bitnami MongoDB that has to be replaced. The move itself is mainly a database restore plus verification: take a Snap backup, locate the correct database folder in the dump, restore it into the rocketchat database on the official MongoDB image, and then confirm that the data arrived intact. Your database is the workspace, so the work is about preserving users, channels, messages and file references rather than moving content between platforms.
This is a single-platform move, which is why it is not an importer job. Rocket.Chat's import tools are built for bringing data in from other chat products, while here the source and target are both Rocket.Chat, so the data model carries over directly. Because of that, the schema and version must line up between the old and new installs, and the verification steps matter more than the transfer itself. Check the startup banner versions after the first boot and confirm the collections and user count before you announce the cutover.
Effort depends on three things you should measure before scheduling: the size of the database, where uploaded files are stored and which Rocket.Chat version is running. Version durability rules matter here. Rocket.Chat says a version past end of life gets no security or bug fixes, and cloud services and mobile and desktop client connections can stop working, so confirm your current version against the Rocket.Chat version durability page. If your install is near or past end of life, plan the move as a chance to land on a supported line rather than restoring into a version you will need to upgrade again immediately.
What carries over from a Snap install and what needs rework
This table compares each part of a Snap-based Rocket.Chat install with its Docker Compose counterpart and notes what to check after the move. Read it before starting the backup so you know which items arrive through the database restore and which must be rebuilt by hand. The main takeaway is that the data moves through the MongoDB dump, while the file location, domain, TLS and proxy settings need deliberate re-checking.
| Item | Snap install | Docker Compose equivalent and migration note |
|---|---|---|
| Messages and channels | Stored in the MongoDB database bundled with the Snap | Restored from the dump into the rocketchat database. The dump folder may not be named rocketchat, so confirm the name first, then verify channels and messages in the client. |
| User accounts | Stored in the users collection of the bundled database | Carried over with the database restore. Confirm the user count in mongosh against the count in the old install, and test a sign-in. |
| Server settings | Stored in the settings collection, with some values set in the Snap configuration | Settings in the database carry over. Snap-only configuration keys do not, so review environment variables in the new compose file. |
| Uploaded files | Stored in the Snap's file location, which depends on the file storage setting | Not guaranteed to move with the database dump. Confirm where files are stored and copy them to the new location, then open a sample of uploads. |
| Domain and TLS | Configured for the Snap's site URL and certificate setup | Set the site URL to the same domain in the new environment. Re-issue or copy certificates and confirm the new TLS endpoint works. |
| Reverse proxy | Often a proxy in front of the Snap listener on its own port | Must be rebuilt to point at the Compose service. Check WebSocket support, header forwarding and upload size limits. |
| Snap-specific configuration | Snap set and get commands, Snap service paths and bundled Bitnami MongoDB | No direct equivalent. Replace with the Compose file, a .env file and the official MongoDB image, then confirm the startup banner shows the expected version. |
Documented paths for this move
Moving a Snap install to Docker Compose is a database move, not a data import, so the documented path runs through the Bitnami-to-official-MongoDB guide, the rocketchat-compose repository and standard MongoDB tools. The cards below cover each piece in the order you will use it, and the one importer that often comes up in this context, which does not apply here.
Bitnami-to-official-MongoDB guide
This is the official Rocket.Chat procedure for this exact move. It describes the Snap backup, identifying the database folder name inside the dump, cloning the compose repository and restoring into the rocketchat database. Read it before you touch the Snap install, because its steps assume the dump folder name may not be rocketchat, and a wrong name is the most common reason a restore appears to succeed while no users show up.
Migration guideThe rocketchat-compose repository
This repository supplies the target Docker Compose stack that replaces the bundled Bitnami MongoDB. You clone it onto the new host, review the MongoDB service definition and the volume path that holds database files, and confirm the Rocket.Chat image tag before the first start. Keep the cloned directory under version control so the configuration you tested is the one you can roll back to.
mongodump for the Snap backup
Run mongodump against the Snap's bundled database to produce the dump that carries users, rooms, messages and settings. Store the dump on a separate volume with a checksum, because the Snap is your only rollback path until verification passes. File uploads are not inside this dump, so plan a separate copy of the upload storage in the same window.
mongorestore into the rocketchat database
Restore the dump into the database named rocketchat on the new MongoDB container, using the folder name you identified in the dump. If the folder name differs, pass the source database name explicitly rather than renaming files by hand. Confirm the target MongoDB version matches what your Rocket.Chat release requires, since the system requirements call for MongoDB 8.0 or later running as a replica set.
mongosh for post-restore checks
Use mongosh to list collections, count users and confirm that rooms and message collections are populated before you point clients at the new stack. Compare those counts with figures taken from the Snap database before the dump. Rocket.Chat also recommends checking the startup banner version after the first boot, so note the version you expect and the version the server reports.
Not a cross-platform importer
The CSV importer and the Slack importer move data from other chat tools into Rocket.Chat, and they are not used in this move. Using them here would create a second, partial copy of users and messages with new identifiers, which is harder to reconcile than the original database. They belong to the pages on migrating from Mattermost or Slack, not to this database move.
How the Snap to Docker Compose move runs step by step
The sequence takes a Snap install with its bundled Bitnami MongoDB to a Docker Compose deployment on the official MongoDB image, with a verified copy of users, channels, messages and files before cutover. The steps follow the vendor's Bitnami MongoDB migration guide, so confirm the version prerequisites for your release line before you begin.
Inventory the current version, database and file storage
The administrator records the installed Rocket.Chat version from the admin console, the MongoDB version bundled with the Snap, the host operating system, and where uploaded files are stored (local filesystem or S3-compatible storage). Confirm that the target Rocket.Chat version and MongoDB version meet the system requirements for your release line, including the replica set requirement. The step is done when this inventory is written down and the target versions are agreed with whoever owns the platform.
Take a full backup of the Snap install
Before any change, the administrator stops writes or schedules a window with users, then creates a full MongoDB dump from the bundled database, along with a copy of the uploaded files and the Snap configuration. The backup is kept off the host being migrated. It is complete when the dump directory is present, its size is plausible for the workspace, and a test restore on a scratch host is possible.
Find the database folder name in the dump
Open the dump directory and list the database folders. The folder is often named rocketchat, but it may carry a different name depending on how the Snap was installed or how the data was originally created. Record the exact name, because the restore target must match the data it is loaded into. The step is done when the folder name is confirmed and matches the collection files inside it.
Clone rocketchat-compose and start MongoDB as a replica set
The administrator clones the rocketchat-compose project, sets the MongoDB service to the official MongoDB image, and sets the environment values for Rocket.Chat, including the replica set name. The MongoDB container starts and is initiated as a replica set, which Rocket.Chat 8.x requires. The step is done when the MongoDB container is healthy and a replica set status check in mongosh reports a primary.
Restore the dump into the rocketchat database
The administrator copies the dump into the MongoDB container and restores it with mongorestore into the rocketchat database. If the folder name recorded earlier is different, the restore must map that source database to the rocketchat target so the data lands where Rocket.Chat reads it. Restored file storage is put in place at the path or bucket the new deployment expects. The step is done when mongorestore finishes without errors and the restore log lists the expected collections.
Start Rocket.Chat and check the startup banner
The administrator starts the Rocket.Chat service, watches the startup log, and confirms the banner reports the expected Rocket.Chat and MongoDB versions. Startup errors about migrations, replica set state or missing collections are resolved before anyone logs in. The step is done when the server reaches a running state and the banner versions match the target versions from the inventory.
Verify collections, users, channels, messages and files
In mongosh, the administrator confirms that the expected collections exist in the rocketchat database and compares the user count with the figure from the Snap inventory. A sample of channels, direct messages and recent messages is checked in the web interface, and several uploaded files are opened to confirm they load from the new storage. Results are recorded against the inventory. The step is done when counts match and the sample checks pass, with any gaps logged for follow-up.
Run a parallel test, cut over and retain the Snap
The restored stack is tested on a non-production host with real admin and user accounts before the production cutover. At cutover, the administrator updates DNS or the reverse proxy, announces the change to users, and keeps the Snap install stopped but intact for a retention window agreed with the business. Decommissioning happens only after that window closes and the Snap backup is confirmed readable. The step is done when users sign in on the new platform and the retained Snap can be restored if needed.
Finding the database name and restoring into rocketchat
The restore target must match the database name Rocket.Chat expects, which is rocketchat in the Docker Compose deployment you are building. A Snap backup does not always produce a folder with that name. The dump is a directory tree with one subfolder per database, and the name of that subfolder reflects the database that was active in the Snap install, which may be different. Before you restore anything, list the top level of the dump directory and confirm which folder holds the collections your workspace uses. Look for collections such as users, rocketchat_room, rocketchat_message and rocketchat_settings. The folder that contains them is the one to restore, whatever it is called. Note its exact name, because the restore command depends on it.
If the folder is not named rocketchat, do not rename it on the assumption that the contents are the same. Instead, tell mongorestore the source database and the target database explicitly, using its source and target namespace options, so the data lands in rocketchat while the dump keeps its original name. Check the exact options against the MongoDB tools version you install, and confirm the procedure in the migration guide before you run it. Before writing data, confirm the target. Connect to the new MongoDB container with mongosh, run show dbs, and confirm that rocketchat is the database you intend to write to and that it is empty or contains only the placeholder data you expect. Restoring into the wrong database, or into a database that already holds a live workspace, can silently leave Rocket.Chat pointing at an empty or stale copy of your data, and it can overwrite data you cannot easily recover.
What drives the effort and duration of the move
This table lists the factors that change how long the Snap to Docker Compose move takes and who carries each cost. Read each row as a question to answer about your own Snap install before asking for a quote, since most drivers are one-time work but some, such as upgrades and TLS renewals, recur after cutover.
| Driver | Why it changes effort | Who pays and one-time or recurring |
|---|---|---|
| Database size | A larger MongoDB dump takes longer to back up, transfer and restore, and it lengthens the verification window. | Internal team or partner, one-time. Ask the quote to state the dump size it assumes. |
| Uploaded files and storage location | Files on the Snap's local disk must be copied to the new host or moved to object storage, and each location needs its own check. | Internal team or partner, one-time. Storage hosting that follows the move is recurring. |
| Version gap to the target | If the Snap runs an older line than the target Compose image, an upgrade path must be planned and tested before or after restore. | Partner or internal team, one-time. Later upgrades are recurring, and unsupported versions stop receiving fixes per the version durability docs. |
| Custom settings and integrations | Each workspace setting, OAuth app, webhook and integration must be checked or re-entered because secrets and callback URLs may change. | Mostly internal team, one-time. Ongoing integration maintenance is recurring. |
| TLS certificates and domain changes | A new host, hostname or reverse proxy requires new certificates, DNS updates and client reconfiguration. | Internal team, one-time for cutover. Certificate renewal is recurring. |
| Database name and restore path | Confirm the folder name in the dump before restoring, since it may not be rocketchat, which adds checks if the names differ. | Internal team, one-time. Low effort if confirmed in advance. |
| Availability window | A short window limits how much can be verified before users return, so checks may need to move to a second session. | Business decision with internal team, one-time. Ask for a rollback plan and its time cost in the quote. |
| Verification scope | Checking channels, messages, uploaded files and user counts takes longer on larger workspaces with more history. | Internal team or partner, one-time. Define the sample and acceptance criteria in writing. |
Questions teams ask before moving Rocket.Chat off Snap
Can an internal team move Rocket.Chat off Snap without a partner?
Yes, a team with Linux administration, Docker Compose and MongoDB experience can do this in-house, and the vendor guide walks through the core steps: take a Snap backup, find the database folder name in the dump, clone rocketchat-compose and restore into the rocketchat database. The skills that matter most are reading a dump correctly, handling the MongoDB replica set and checking the result. Teams without a MongoDB operator often find the database name and restore steps the hardest part, so they should decide early who will own the verification after cutover. Start with the Rocket.Chat migration guide and test the full sequence on a staging host first.
What does the migration need from our team before work starts?
The work needs four things from your side: access to the Snap host to produce the backup, a staging host where the restore can be rehearsed, administrator credentials for the workspace and a agreed change window for the final cutover. Each one shapes the risk. Without a staging host, the first real restore happens in production. Without a change window, users may write messages while the backup is being taken, which creates gaps. Ask who can approve the window, who holds the admin login and who can confirm the workspace works after the switch.
How is the cost of this migration shaped, and what should a written scope include?
Cost depends on how many environments must be prepared, how much verification is required and whether file storage or identity changes are part of the work. Most of the spend is labor for planning, rehearsal, cutover and checking, and it is a one-time cost, while hosting and the Rocket.Chat plan are recurring costs you carry either way. A written scope should list the hosts involved, the backup and restore steps, the checks on users, channels, messages and files, the rollback plan and who signs off. Ask for a quote built from that scope rather than a general estimate. DeployOpen does not publish a price list, so a quote follows from the written scope.
How long does the migration take, and what changes the duration?
Duration is driven by the size of the database dump, the volume of uploaded files and how many rehearsal runs are needed before cutover. A small workspace with little stored media restores quickly, while a large workspace with years of files spends most of its time on copying and checking. Storage location matters too: files kept on the local Snap filesystem need to be moved and verified separately from the database. No standard duration is supplied for this migration, so ask any partner to state the dependent factors and assumptions in the written scope and to test the restore on a copy of your real data.
Do users keep their sessions, channels and message history after the move?
Users keep their accounts, channels and message history when the restored database is complete and the new deployment uses the same Rocket.Chat version line and the same workspace URL. Sessions are a different matter: after a server change, users may be asked to sign in again, and mobile or desktop clients may need to reconnect. Uploaded files depend on where they were stored, so confirm that each file is reachable after cutover. After restore, check collections, user count, channels, messages and uploads in the way the vendor guide describes, and make sure the version shown in the startup banner matches what you expect.
What happens if the restore fails during cutover?
A failed restore should leave the original Snap workspace untouched, which is why the backup is taken first and kept separate. The rollback plan should state who decides to stop, how the Snap install is brought back to service and how users are told. Do not delete or overwrite the Snap data until the new deployment has passed the checks on users, messages and files. Rehearsing the restore on staging exposes most failures early, such as a wrong database name or a replica set that is not yet initialized. Confirm the rollback steps in writing before the change window opens.
Should we upgrade Rocket.Chat during the move from Snap?
Keep the version change separate from the platform move wherever possible, because a migration that also changes versions makes failures harder to trace. Rocket.Chat 8.x requires MongoDB 8.0 or later running as a replica set, so check the database prerequisites before choosing a target version. Standard releases are supported for 6 months and LTS releases for 12 months, and unsupported versions lose security fixes and access to cloud services, so the target line should be one that is currently supported. Plan the upgrade as its own step with its own checks.
What usually goes wrong in a Snap restore and how to prevent it
A Snap-to-Compose move fails in a small number of predictable ways, and most of them are visible before users notice. The cards below cover the database, files, versions, replica set, sign-in and cutover timing, each with the check that prevents it.
Restoring into the wrong database
The dump folder may not be named rocketchat, so a restore that targets the default name can create an empty database while the real data sits elsewhere. Find the database folder name in the dump before running any restore command. Then restore into the rocketchat database on the new MongoDB and confirm the collections exist before starting Rocket.Chat. Keep the original Snap backup untouched so you can repeat the restore.
Missing uploaded files
Messages can restore cleanly while attachments, avatars and other uploads fail to load because the file store path or storage type changed between the Snap and the Compose stack. Compare the upload storage settings on both sides before cutover. Then open a sample of channels with files and confirm that each attachment downloads, not just that its message appears.
Version mismatch between dump and target
A database dump taken from one Rocket.Chat release and started against an image with different expectations can produce startup errors or migration failures. Record the version the Snap was running, choose a Compose image on the same line, and check the startup banner after the first boot. Confirm the target MongoDB version meets the requirement for your Rocket.Chat release before restoring.
MongoDB not running as a replica set
Rocket.Chat 8.x requires MongoDB 8.0 or later running as a replica set, so a standalone container can start the restore but leave the application unable to run. Confirm the replica set is initiated and healthy before the application container starts. Treat a three-member replica set as the recommended design for high availability, and plan for it even if the first cutover uses one member.
System requirementsUsers unable to sign in after cutover
Accounts can exist in the restored database while sign-in still fails because the URL, site settings or identity configuration no longer match the new environment. Test a sign-in with an administrator account and a standard user account on the new server before announcing the move. Then verify the user count in mongosh against the count recorded from the Snap so you know no accounts were dropped.
Old Snap still taking writes
If the Snap stays online during the restore, users can post messages that never reach the new database, and the two copies diverge. Stop or block the Snap before the final backup, announce a write freeze to users, and take the backup after the freeze. Keep the Snap stopped rather than deleted until channels, messages and files are confirmed on the new server.
How data moves from the Snap backup to the Compose stack
The flow starts with a Snap backup of the running workspace, then checks the dump folder for the actual database name, which may not be rocketchat. The backup is cloned into a fresh rocketchat-compose project, restored into the rocketchat database on the official MongoDB image, and started. Verification in mongosh and in the web interface decides whether the team cuts over or rolls back, and the Snap install is only decommissioned after that check passes.
Phases from Snap backup through verification, ending in cutover or rollback.
Checking users, channels and files after the restore
The purpose of this section is to prove that the restored workspace matches the Snap source before anyone is told to log in. The vendor's Bitnami MongoDB migration guidance recommends three checks: confirm the collections and user count in mongosh, check the versions shown in the startup banner, and verify channels, messages and uploaded files. Run them in that order. The database checks are cheap and fast, so they catch a wrong database name or a partial restore before you spend time on user-facing tests. Connect to the rocketchat database inside the new MongoDB container and list the collections, then count documents in the users collection. Compare that count with the number of active and deactivated accounts in the Snap workspace's administration panel, and record both figures, since deactivated users still exist in the database.
Next, read the startup banner in the Rocket.Chat container logs and record the version it reports. It should match the version you planned to run, and it should be a release that still receives fixes. Confirm the release line against the Rocket.Chat version durability page, because a version that has reached end of life loses security fixes and some cloud services. Then check the functional data. A reviewer should pick a sample of channels from several types (public, private, and direct messages), open each one, and compare the latest messages, pinned items and member lists against the Snap source. Open a few uploaded files from both old and recent messages, and check the avatars. Files are stored separately from the database, so a successful database restore does not prove they came across. Confirm the file storage location in the new deployment points at the copied uploads.
For sign-off, keep a short written record with the Snap backup identifier, the restore date, the Rocket.Chat and MongoDB versions, the user counts from both sides, the channels and files sampled, and every discrepancy with its disposition. Name who performed each check and who accepted the result. Ask the reviewer to repeat a login with a test account and an administrator account, since authentication problems often appear only at that point. Any gap in counts or files should block cutover until it is explained, and the record should stay with the change ticket so that the Snap source can be retired only after the owner agrees.
How DeployOpen works on this
DeployOpen starts by confirming what the existing Snap install holds and where the data needs to land, then runs the migration in your infrastructure with written scope and checks at each stage. The work is planned around your backups, your users and your files, so the Docker Compose deployment can be reviewed and handed over.
How we scope
- We confirm the Snap version, the Bitnami MongoDB dump and the target host before work starts
- The written scope lists the backup, database restore, user checks and file verification steps
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins
How we build
- We take and verify a Snap backup, then identify the database folder name inside the dump
- We build the Docker Compose stack from rocketchat-compose and restore into the rocketchat database
- We run collection and user count checks in mongosh and confirm the startup banner versions
How we hand over
- You receive the running Compose configuration, restore records and a checklist of verified channels, messages and files
- We document the database name, volume paths and rollback steps used during the cutover
- Your team walks through the final state so it can operate the new deployment without us
How we support
- Ongoing support, upgrades and testing are available as retainers after the migration is complete
- We can plan follow-on upgrades so the deployment stays on a supported Rocket.Chat release line
- Support scope, response expectations and fees are set in a written quote based on your environment

