title: NodeJS Multicontainer Docker on Elastic Beanstalk
body: <p>I have a NodeJS application that communicates with mongodb. 
  Both services should run on Elastic Beanstalk in a "multicontainer" Docker container. 
  It seams that the mongodb service runs through and works but my NodeJS service doesn't start. It produces empty log files and the server is not available. </p>
  
  <p>I am deploying the container via EB CLI. Starting everything locally via <code>eb local run</code> works fine but at the live environment the nodeJS part just doesn't start.</p>
  
  <p>This is my Dockerrun.aws.json: </p>
  
  <pre><code>{
      "AWSEBDockerrunVersion": 2,
      "volumes": [
          {
              "name": "node",
              "host": {
                  "sourcePath": "/var/app/current/node"
              }
          }
      ],
      "containerDefinitions": [
          {
              "environment": [
                  {
                      "name": "MONGODB_DATABASE",
                      "value": "chat_service"
                  }
              ],
              "image": "mongo",
              "memory": 128,
              "name": "mongo"
          },
          {
              "essential": true,
              "image": "node",
              "memory": 250,
              "name": "node",
              "mountPoints": [
                  {
                      "sourceVolume": "node",
                      "containerPath": "/usr/src/app",
                      "sourcePath": "",
                      "readOnly": true
                  }
              ],
              "portMappings": [
                  {
                      "hostPort": 80,
                      "containerPort": 3000
                  }
              ]
          }
      ]
  }
  </code></pre>
  
  <p>And my Dockerfile:</p>
  
  <pre><code>FROM node:carbon
  RUN mkdir -p /usr/src/app
  WORKDIR /usr/src/app
  
  COPY package*.json ./
  
  RUN npm install
  
  COPY . .
  EXPOSE 3000
  
  CMD [ "node", "index.js" ]
  </code></pre>
  
  <p>I'm very new to Docker, so maybe I forgot something. Neither the CLI nor in the AWS EB Console any errors are visible and the deployment is processed without an error. </p>