Connect mongoose to mongo node meteor 2.7.1 when using out of memory?

I deploy production meteor 2.7.1 with mongo version 4.0.5 and use mongoose for model connect to mongo but it always run out of memory. Please any suggestion me with my connection.

    import { Meteor } from 'meteor/meteor'
    import Mongoose from 'mongoose'
    let HOST = 'mongodb'
    const DB_NAME = Meteor.settings.private.APP_NAME
    const PORT = 27017
    var mongoDB = `mongodb://${HOST}:${PORT}/${DB_NAME}`
    Mongoose.connect(mongoDB, {
        useNewUrlParser: true,
        useUnifiedTopology: true,
        maxPoolSize: 10,
        socketTimeoutMS: 45000,
        serverSelectionTimeoutMS: 5000,
        autoIndex: false,
        family: 4,
     })
    Mongoose.Promise = global.Promise
    var db = Mongoose.connection
    db.on('connect', function () {
        console.log('Mongoose default connect done')
    })
    db.on('error', function (err) {
       console.log('Mongoose default connect error' + err)
    })