/
Node_container container

Node_container container

Here we are going to focus on the Mongo server and Java services.

  1. Go to /opt/zw-vmmc-docker/services/ and create .env file:

    vim /opt/zw-vmmc-docker/node_container/services/.env

     

    And paste the next content:

    MONGO_LOCATION="mongo:27017" MONGO_USER_PASS="<user>:<pwd>" KAFKA_BROKER="kafka-broker:9092"
  2. You will need to replace “<user>” and “<pwd>” with the same user and password existing in: mongo-user

  3. Continue creating the file ecosystem.config.js in the same folder:

    vim /opt/zw-vmmc-docker/node_container/services/ecosystem.config.js
  4. Copy the next lines on the file you are creating:

  5. After that, we will need to get the services. To get the resources you need to access to GitHub and download the next releases:

  6. All these folder haves to be moved to /opt/zw-vmmc-docker/node_container/services

  7. The last step in the node_container folder is to create the dockerfile in /opt/zw-vmmc-docker/node_container :

  8. With the next content:

 


Next: Ngnix folder ➡️

Related content