Skip to content

Deprecated MongoDB <= 4.0 - update docker-compose.yml #23341

Closed

Description

@sephentos

docker-compose.yml should be updated accordingly to changed mongo dependency on 4.0.0

Activity

  1. arunoruto commented on Oct 2, 2021

    @arunoruto

    I faced the issue too.
    One big bummer, is the removal of the mmapv1 storage engine. So a migration needs to be done (I guess, I am not experienced with databases). So a small guide on that would be nice too.

  2. sephentos commented on Oct 2, 2021

    @sephentos
    Author

    I faced the issue too. One big bummer, is the removal of the mmapv1 storage engine. So a migration needs to be done (I guess, I am not experienced with databases). So a small guide on that would be nice too.

    You can find a migration guide here:
    Docker: https://docs.rocket.chat/installing-and-updating/docker-containers/mongodb-mmap-to-wiredtiger-migration
    Without docker (for our google visitors :)): https://docs.rocket.chat/installing-and-updating/manual-installation/mongodb-mmap-to-wiredtiger-migration

    I've followed these steps and managed to upgrade to Mongo 4.2 within docker.
    After migrating you can change the 4.0 tags in docker-compose.yml to 4.2.

  3. maeries commented on Oct 4, 2021

    @maeries

    Thanks for the link, but what am I supposed to to after that? Switch back to the docker-compose.yml I used before or should I keep using the one with the migrator?

  4. arunoruto commented on Oct 5, 2021

    @arunoruto

    @sephentos thanks a lot for the link! I just did the migration successfully and should probably keep the database up-to-date I guess!

    @maeries I switched to my previous docker-compose and just changed the version from 4.0 to 4.2 and the previous mongo command, to the one provided in the migration compose file mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger. I guess you can also leave the migration file, but comment the migration part out, since I would also guess you dont want the migration container to run every time you recreate your stack

  5. added a commit that references this issue on Jun 10, 2022
    e38b5bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions