Installation Docker

Install Docker

Install Biometrid

Make a new directory, change to it, and create a new empty file called docker-compose.yaml

mkdir biometrid
cd biometrid
touch docker-compose.yaml

Edit docker-compose.yaml

version: '3'
services:
 nodejs:
   image: polygoninnovation/biometrid
   environment:
     PROD_API_BASE_URL: '<your_prod_url>'
     PROD_API_VERSION: 1.0
     PROD_PORT: <your_prod_port>
     PROD_BODY_LIMIT: <your_prod_body_limit>
     PROD_MONGO_DB_URL: '<your_mongo_db_url>'
     PROD_MONGO_DEBUG: '<your_mongo_debug>'
     SIGN_MICROSERVICE_URL: '<your_sign_url>'
     SIGN_MICROSERVICE_PORT: <your_sign_port>
     PROXY_URL: '<your_proxy_url>'
     PROXY_PORT: <your_proxy_port>
     PROXY_USER: <your_proxy_user>
     PROXY_PWD: <your_proxy_password>
   ports:
     - '<external_port>:<internal_port>'

Replace all the following missing values in the file with your configuration settings:

  • PROD_PORT (required): Port where app will listen inside of the docker image. Ex: 8030

  • PROD_BODY_LIMIT: Limit the incoming body payload. Ex: 20mb

  • PROD_API_VERSION: API Version (Should always be 1.0, due to legacy logic code)

  • PROD_API_BASE_URL (required): API endpoint URL. Ex: https://api.biometrid.com

  • PROD_MONGO_DB_URL (required): Mongo DB URL. Ex: mongodb://user:password@localhost:27010/biometrid

  • PROD_MONGO_DEBUG: Enable Mongo DB query logs. Ex: true ou false

  • SIGN_MICROSERVICE_URL: Polygon URL for signature micro service: Ex: http://localhost

  • SIGN_MICROSERVICE_PORT: Polygon port for signature micro service. Ex: 8090

  • PROXY_URL: URL for external micro service.

  • PROXY_PORT: Port for external micro service.

  • PROXY_USER: User for external micro service.

  • PROXY_PWD: Password for external micro service.

  • ports (required): Map the host machine port to the internal docker port. Ex: 8080:8030

Run App

docker-compose up

This will automatically fetch its settings from the docker-compose.yaml file.

Last updated

Was this helpful?