title: Unable to run mongo express with docker compose
body: <p>This is my first post in node js and docker so bear with me. I am running a mongo and mongo express container with the docker-compose but mongo express is not running. When I run mongo and mongo express without docker-compose it works perfectly. So, I think I am having some issues in docker-compose or maybe node js code</p>
  <p><strong>docker-compose.yaml</strong></p>
  <pre><code>version: '3'
  services:
    mongodb:
      image: mongo
      ports:
        - 27017:27017
      environment:
        - MONGO_INITDB_ROOT_USERNAME=admin
        - MONGO_INITDB_ROOT_PASSWORD=password
    mongo-express:
      image: mongo-express
      ports:
        - 8080:8081
      environment:
        - ME_CONFIG_MONGODB_ADMINUSERNAME=admin
        - ME_CONFIG_MONGODB_ADMINPASSWORD=password
        - ME_CONFIG_MONGODB_SERVER=mongodb
  </code></pre>
  <p><strong>server.js</strong></p>
  <pre><code>let express = require('express');
  let path = require('path');
  let fs = require('fs');
  let MongoClient = require('mongodb').MongoClient;
  let bodyParser = require('body-parser');
  let app = express();
  
  app.use(bodyParser.urlencoded({
    extended: true
  }));
  app.use(bodyParser.json());
  
  app.get('/', function (req, res) {
      res.sendFile(path.join(__dirname, &quot;index.html&quot;));
    });
  
  app.get('/profile-picture', function (req, res) {
    let img = fs.readFileSync(path.join(__dirname, &quot;images/profile-1.jpg&quot;));
    res.writeHead(200, {'Content-Type': 'image/jpg' });
    res.end(img, 'binary');
  });
  
  // use when starting application locally
  let mongoUrlLocal = &quot;mongodb://admin:password@localhost:27017&quot;;
  
  // use when starting application as docker container
  let mongoUrlDocker = &quot;mongodb://admin:password@mongodb&quot;;
  
  // pass these options to mongo client connect request to avoid DeprecationWarning for current Server Discovery and Monitoring engine
  let mongoClientOptions = { useNewUrlParser: true, useUnifiedTopology: true };
  
  // &quot;user-account&quot; in demo with docker. &quot;my-db&quot; in demo with docker-compose
  let databaseName = &quot;my-db&quot;;
  
  app.post('/update-profile', function (req, res) {
    let userObj = req.body;
  
    MongoClient.connect(mongoUrlLocal, mongoClientOptions, function (err, client) {
      if (err) throw err;
  
      let db = client.db(databaseName);
      userObj['userid'] = 1;
  
      let myquery = { userid: 1 };
      let newvalues = { $set: userObj };
  
      db.collection(&quot;users&quot;).updateOne(myquery, newvalues, {upsert: true}, function(err, res) {
        if (err) throw err;
        client.close();
      });
  
    });
    // Send response
    res.send(userObj);
  });
  
  app.get('/get-profile', function (req, res) {
    let response = {};
    // Connect to the db
    MongoClient.connect(mongoUrlLocal, mongoClientOptions, function (err, client) {
      if (err) throw err;
  
      let db = client.db(databaseName);
  
      let myquery = { userid: 1 };
  
      db.collection(&quot;users&quot;).findOne(myquery, function (err, result) {
        if (err) throw err;
        response = result;
        client.close();
  
        // Send response
        res.send(response ? response : {});
      });
    });
  });
  
  app.listen(3000, function () {
    console.log(&quot;app listening on port 3000!&quot;);
  });
  </code></pre>
  <p>If I run <strong>docker ps</strong> I can only see mongo is running</p>
  <pre><code>CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS          PORTS                                           NAMES
  d20c4784d316   mongo     &quot;docker-entrypoint.s…&quot;   43 seconds ago   Up 38 seconds   0.0.0.0:27017-&gt;27017/tcp, :::27017-&gt;27017/tcp   nodeapplications_mongodb_1
  </code></pre>
  <p>And when I run my docker-compose with the below command I see this log where I suspect an issue. Any help is appreciated</p>
  <p><strong>docker-compose -f docker-compose.yaml up</strong></p>
  <p><strong>Logs</strong></p>
  <pre><code>mongo-express_1  | Welcome to mongo-express
  mongo-express_1  | ------------------------
  mongo-express_1  | 
  mongo-express_1  | 
  mongo-express_1  | (node:7) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
  mongo-express_1  | Could not connect to database using connectionString: mongodb://admin:password@mongodb:27017/&quot;
  mongo-express_1  | (node:7) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [mongodb:27017] on first connect [Error: connect ECONNREFUSED 172.19.0.3:27017
  mongo-express_1  |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) {
  mongo-express_1  |   name: 'MongoNetworkError'
  mongo-express_1  | }]
  mongo-express_1  |     at Pool.&lt;anonymous&gt; (/node_modules/mongodb/lib/core/topologies/server.js:438:11)
  mongo-express_1  |     at Pool.emit (events.js:314:20)
  mongo-express_1  |     at /node_modules/mongodb/lib/core/connection/pool.js:562:14
  mongo-express_1  |     at /node_modules/mongodb/lib/core/connection/pool.js:995:11
  mongo-express_1  |     at /node_modules/mongodb/lib/core/connection/connect.js:32:7
  mongo-express_1  |     at callback (/node_modules/mongodb/lib/core/connection/connect.js:280:5)
  mongo-express_1  |     at Socket.&lt;anonymous&gt; (/node_modules/mongodb/lib/core/connection/connect.js:310:7)
  mongo-express_1  |     at Object.onceWrapper (events.js:421:26)
  mongo-express_1  |     at Socket.emit (events.js:314:20)
  mongo-express_1  |     at emitErrorNT (internal/streams/destroy.js:92:8)
  mongo-express_1  |     at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
  mongo-express_1  |     at processTicksAndRejections (internal/process/task_queues.js:84:21)
  mongo-express_1  | (node:7) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
  </code></pre>
  <p><strong>As suggested by</strong> @Blunderchips <strong>Update 1</strong></p>
  <p><strong>server.js</strong></p>
  <pre><code>let express = require('express');
  let path = require('path');
  let fs = require('fs');
  let MongoClient = require('mongodb').MongoClient;
  let bodyParser = require('body-parser');
  let app = express();
  
  const dbServer = process.env.ME_CONFIG_MONGODB_SERVER;
  const dbPassword = process.env.ME_CONFIG_MONGODB_ADMINPASSWORD;
  const dbUserName = process.env.ME_CONFIG_MONGODB_ADMINUSERNAME;
  const dbPort = process.env.ME_CONFIG_MONGODB_PORT;
  
  app.use(bodyParser.urlencoded({
    extended: true
  }));
  app.use(bodyParser.json());
  
  app.get('/', function (req, res) {
      res.sendFile(path.join(__dirname, &quot;index.html&quot;));
    });
  
  app.get('/profile-picture', function (req, res) {
    let img = fs.readFileSync(path.join(__dirname, &quot;images/profile-1.jpg&quot;));
    res.writeHead(200, {'Content-Type': 'image/jpg' });
    res.end(img, 'binary');
  });
  
  // use when starting application locally
  //let mongoUrlLocal = &quot;mongodb://admin:password@localhost:27017&quot;;
  
  // use when starting application as docker container
  let mongoUrlDocker = `mongodb://${dbUserName}:${dbPassword}@${dbServer}:${dbPort}`;//&quot;mongodb://admin:password@mongodb:27017&quot;;//&quot;mongodb://admin:password@mongodb&quot;;
  
  // pass these options to mongo client connect request to avoid DeprecationWarning for current Server Discovery and Monitoring engine
  let mongoClientOptions = { useNewUrlParser: true, useUnifiedTopology: true };
  
  // &quot;user-account&quot; in demo with docker. &quot;my-db&quot; in demo with docker-compose
  let databaseName = &quot;my-db&quot;;
  
  app.post('/update-profile', function (req, res) {
    let userObj = req.body;
  
    MongoClient.connect(mongoUrlDocker, mongoClientOptions, function (err, client) {
      if (err) throw err;
  
      let db = client.db(databaseName);
      userObj['userid'] = 1;
  
      let myquery = { userid: 1 };
      let newvalues = { $set: userObj };
  
      db.collection(&quot;users&quot;).updateOne(myquery, newvalues, {upsert: true}, function(err, res) {
        if (err) throw err;
        client.close();
      });
  
    });
    // Send response
    res.send(userObj);
  });
  
  app.get('/get-profile', function (req, res) {
    let response = {};
    // Connect to the db
    MongoClient.connect(mongoUrlDocker, mongoClientOptions, function (err, client) {
      if (err) throw err;
  
      let db = client.db(databaseName);
  
      let myquery = { userid: 1 };
  
      db.collection(&quot;users&quot;).findOne(myquery, function (err, result) {
        if (err) throw err;
        response = result;
        client.close();
  
        // Send response
        res.send(response ? response : {});
      });
    });
  });
  
  app.listen(3000, function () {
    console.log(&quot;app listening on port 3000!&quot;);
  });
  </code></pre>
  <p><strong>docker-compose.yaml</strong></p>
  <pre><code>version: '3'
  services:
    mongodb:
      image: mongo
      ports:
        - 27017:27017
      environment:
        - MONGO_INITDB_ROOT_USERNAME=admin
        - MONGO_INITDB_ROOT_PASSWORD=password
    mongo-express:
      image: mongo-express
      ports:
        - 8080:8081
      environment:
        - ME_CONFIG_MONGODB_ADMINUSERNAME=admin
        - ME_CONFIG_MONGODB_ADMINPASSWORD=password
        - ME_CONFIG_MONGODB_SERVER=mongodb
      links: 
          - mongodb:mongodb
  </code></pre>
  <p>I still can't see mongo express running</p>
  <pre><code>docker ps
  CONTAINER ID   IMAGE     COMMAND                  CREATED              STATUS              PORTS                                           NAMES
  23428dc0c3a1   mongo     &quot;docker-entrypoint.s…&quot;   About a minute ago   Up About a minute   0.0.0.0:27017-&gt;27017/tcp, :::27017-&gt;27017/tcp   nodeapplications_mongodb_1
  </code></pre>
  <p><strong>Logs</strong></p>
  <pre><code>mongo-express_1  | Welcome to mongo-express
  mongo-express_1  | ------------------------
  mongo-express_1  | 
  mongo-express_1  | 
  mongo-express_1  | (node:7) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
  mongo-express_1  | Could not connect to database using connectionString: mongodb://admin:password@mongodb:27017/&quot;
  mongo-express_1  | (node:7) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [mongodb:27017] on first connect [Error: connect ECONNREFUSED 172.23.0.2:27017
  mongo-express_1  |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) {
  mongo-express_1  |   name: 'MongoNetworkError'
  mongo-express_1  | }]
  mongo-express_1  |     at Pool.&lt;anonymous&gt; (/node_modules/mongodb/lib/core/topologies/server.js:438:11)
  mongo-express_1  |     at Pool.emit (events.js:314:20)
  mongo-express_1  |     at /node_modules/mongodb/lib/core/connection/pool.js:562:14
  mongo-express_1  |     at /node_modules/mongodb/lib/core/connection/pool.js:995:11
  mongo-express_1  |     at /node_modules/mongodb/lib/core/connection/connect.js:32:7
  mongo-express_1  |     at callback (/node_modules/mongodb/lib/core/connection/connect.js:280:5)
  mongo-express_1  |     at Socket.&lt;anonymous&gt; (/node_modules/mongodb/lib/core/connection/connect.js:310:7)
  mongo-express_1  |     at Object.onceWrapper (events.js:421:26)
  mongo-express_1  |     at Socket.emit (events.js:314:20)
  mongo-express_1  |     at emitErrorNT (internal/streams/destroy.js:92:8)
  mongo-express_1  |     at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
  mongo-express_1  |     at processTicksAndRejections (internal/process/task_queues.js:84:21)
  mongo-express_1  | (node:7) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
  mongo-express_1  | (node:7) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  </code></pre>
  <p><strong>Update 2</strong></p>
  <pre><code>let express = require('express');
  let path = require('path');
  let fs = require('fs');
  let MongoClient = require('mongodb').MongoClient;
  let bodyParser = require('body-parser');
  let app = express();
  
  app.use(bodyParser.urlencoded({
    extended: true
  }));
  app.use(bodyParser.json());
  
  app.get('/', function (req, res) {
      res.sendFile(path.join(__dirname, &quot;index.html&quot;));
    });
  
  app.get('/profile-picture', function (req, res) {
    let img = fs.readFileSync(path.join(__dirname, &quot;images/profile-1.jpg&quot;));
    res.writeHead(200, {'Content-Type': 'image/jpg' });
    res.end(img, 'binary');
  });
  
  // use when starting application locally
  //let mongoUrlLocal = &quot;mongodb://admin:password@localhost:27017&quot;;
  
  // use when starting application as docker container
  let mongoUrlDocker = &quot;mongodb://admin:password@mongodb:27017&quot;;
  
  // pass these options to mongo client connect request to avoid DeprecationWarning for current Server Discovery and Monitoring engine
  let mongoClientOptions = { useNewUrlParser: true, useUnifiedTopology: true };
  
  // &quot;user-account&quot; in demo with docker. &quot;my-db&quot; in demo with docker-compose
  let databaseName = &quot;my-db&quot;;
  
  app.post('/update-profile', function (req, res) {
    let userObj = req.body;
  
    MongoClient.connect(mongoUrlDocker, mongoClientOptions, function (err, client) {
      if (err) throw err;
  
      let db = client.db(databaseName);
      userObj['userid'] = 1;
  
      let myquery = { userid: 1 };
      let newvalues = { $set: userObj };
  
      db.collection(&quot;users&quot;).updateOne(myquery, newvalues, {upsert: true}, function(err, res) {
        if (err) throw err;
        client.close();
      });
  
    });
    // Send response
    res.send(userObj);
  });
  
  app.get('/get-profile', function (req, res) {
    let response = {};
    // Connect to the db
    MongoClient.connect(mongoUrlDocker, mongoClientOptions, function (err, client) {
      if (err) throw err;
  
      let db = client.db(databaseName);
  
      let myquery = { userid: 1 };
  
      db.collection(&quot;users&quot;).findOne(myquery, function (err, result) {
        if (err) throw err;
        response = result;
        client.close();
  
        // Send response
        res.send(response ? response : {});
      });
    });
  });
  
  app.listen(3000, function () {
    console.log(&quot;app listening on port 3000!&quot;);
  });
  </code></pre>
  <p><strong>Update 3</strong></p>
  <p><strong>docker-compose</strong></p>
  <pre><code>version: '3'
  services:
    mongodb:
      image: mongo
      ports:
        - 27017:27017
      environment:
        - MONGO_INITDB_ROOT_USERNAME=admin
        - MONGO_INITDB_ROOT_PASSWORD=password
    mongo-express:
      image: mongo-express
      ports:
        - 8080:8081
      environment:
        - ME_CONFIG_MONGODB_ADMINUSERNAME=admin
        - ME_CONFIG_MONGODB_ADMINPASSWORD=password
        - ME_CONFIG_MONGODB_SERVER=mongodb
      links: 
          - mongodb:mongodb
      restart: on-failure
  </code></pre>
  <p><strong>Full Logs</strong></p>
  <pre><code> mongo-express_1  | Welcome to mongo-express
  mongo-express_1  | ------------------------
  mongo-express_1  | 
  mongo-express_1  | 
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:41:58.806+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:22318,   &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;Shutting down session sweeper thread&quot;}
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:41:58.806+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:22319,   &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;Finished shutting down session sweeper thread&quot;}
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:41:58.807+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:22322,   &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;Shutting down checkpoint thread&quot;}
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:41:58.807+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:22323,   &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;Finished shutting down checkpoint thread&quot;}
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:41:58.807+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:4795902, &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;Closing WiredTiger&quot;,&quot;attr&quot;:{&quot;closeConfig&quot;:&quot;leak_memory=true,&quot;}}
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:41:58.810+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:22430,   &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;WiredTiger message&quot;,&quot;attr&quot;:{&quot;message&quot;:&quot;[1625395318:810568][28:0x7f50eec9b700], close_ckpt: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 48, snapshot max: 48 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0)&quot;}}
  mongo-express_1  | (node:7) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
  mongo-express_1  | Could not connect to database using connectionString: mongodb://admin:password@mongodb:27017/&quot;
  mongo-express_1  | (node:7) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [mongodb:27017] on first connect [Error: connect ECONNREFUSED 172.27.0.2:27017
  mongo-express_1  |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) {
  mongo-express_1  |   name: 'MongoNetworkError'
  mongo-express_1  | }]
  mongo-express_1  |     at Pool.&lt;anonymous&gt; (/node_modules/mongodb/lib/core/topologies/server.js:438:11)
  mongo-express_1  |     at Pool.emit (events.js:314:20)
  mongo-express_1  |     at /node_modules/mongodb/lib/core/connection/pool.js:562:14
  mongo-express_1  |     at /node_modules/mongodb/lib/core/connection/pool.js:995:11
  mongo-express_1  |     at /node_modules/mongodb/lib/core/connection/connect.js:32:7
  mongo-express_1  |     at callback (/node_modules/mongodb/lib/core/connection/connect.js:280:5)
  mongo-express_1  |     at Socket.&lt;anonymous&gt; (/node_modules/mongodb/lib/core/connection/connect.js:310:7)
  mongo-express_1  |     at Object.onceWrapper (events.js:421:26)
  mongo-express_1  |     at Socket.emit (events.js:314:20)
  mongo-express_1  |     at emitErrorNT (internal/streams/destroy.js:92:8)
  mongo-express_1  |     at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
  mongo-express_1  |     at processTicksAndRejections (internal/process/task_queues.js:84:21)
  mongo-express_1  | (node:7) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
  mongo-express_1  | (node:7) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:42:00.871+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:4795901, &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;WiredTiger closed&quot;,&quot;attr&quot;:{&quot;durationMillis&quot;:2064}}
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:42:00.871+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:22279,   &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;shutdown: removing fs lock...&quot;}
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:42:00.872+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;-&quot;,        &quot;id&quot;:4784931, &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;Dropping the scope cache for shutdown&quot;}
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:42:00.873+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;FTDC&quot;,     &quot;id&quot;:4784926, &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;Shutting down full-time data capture&quot;}
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:42:00.873+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;FTDC&quot;,     &quot;id&quot;:20626,   &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;Shutting down full-time diagnostic data capture&quot;}
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:42:00.878+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;CONTROL&quot;,  &quot;id&quot;:20565,   &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;Now exiting&quot;}
  mongodb_1        | {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-07-04T10:42:00.879+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;CONTROL&quot;,  &quot;id&quot;:23138,   &quot;ctx&quot;:&quot;SignalHandler&quot;,&quot;msg&quot;:&quot;Shutting down&quot;,&quot;attr&quot;:{&quot;exitCode&quot;:0}}
  nodeapplications_mongo-express_1 exited with code 0
  mongodb_1        | 
  mongodb_1        | MongoDB init process complete; ready for start up.
  </code></pre>