Could I custom mongo container name in MUP?

Could I custom mongodb container name in MUP?

  • The Default mongo container name mongodb
    env: {
      // TODO: Change to your app's url
      // If you are using ssl, it needs to start with https://
      ROOT_URL: 'http://app.com',
      MONGO_URL: 'mongodb://mongodb/meteor',
      MONGO_OPLOG_URL: 'mongodb://mongodb/local',
    },
  • I would like to use difference mongodb version on the same server. So I want to change the mongodb container name.
env: {
      // TODO: Change to your app's url
      // If you are using ssl, it needs to start with https://
      ROOT_URL: 'http://app.com',
      MONGO_URL: 'mongodb://mongodb_4/meteor',
      MONGO_OPLOG_URL: 'mongodb://mongodb_4/local',
    },

Please help me!

Ho @theara, after reviewing the code of mup, you can’t customize the mongo container name.
The only solution is to setup external mongodb container and name it accordingly to your need.
Remove mongo key on the mup config file (so it does not start the default mongo) and use MONGO_URL.
You can use hooks to run or verify the external mongo containers.

thanks for your reply, I will check soon :sunny:
Could you example for me?