Dashboard API Compose

This section provides the Docker Compose file for running the Configuration Dashboard API from its Docker image.

📘

All configuration properties and environment variables in the Docker Compose example below are placeholders and must be updated with your actual settings before deployment.

📘

The application runs internally inside the container on port 3000 by default and can not be changed. When configuring your port mappings, you may change the left-hand host port to fit your environment, but the right-hand container port must remain 3000.

name: "lullagate-id" #project name
services:
  dashboard-api:
    image: "orgherdalipi/lullagate-id-dashboard-api:1.0.0"
    container_name: "dashboard-api"
    ports:
      # [HOST:CONTAINER] Configure only the host port on the left (e.g., 4300);
      # The internal container port must remain 3000.
      - "4300:3000"
    # The environment values below are examples only and must be replaced with your actual configuration
    environment:
      # API CREDENTIALS
      BASIC_AUTH_USERNAME: "api-username"
      BASIC_AUTH_PASSWORD: "api-password"
      # DATABASE CONNECTION
      DATABASE_URL: "jdbc:mysql://<host>:<port>/<database>?<optional-params>"
      DATABASE_USERNAME: "db-username"
      DATABASE_PASSWORD: "db-password"
      # DATABASE CONNECTION POOL
      DATABASE_POOL_MAX_SIZE: "10"
      DATABASE_POOL_MIN_SIZE: "5"
      # The encyption key must be generated from the Admin Console and the same value must be set in the Gateway environment as well
      ENCRYPTION_KEY: "encryption-key"
      # Uncomment and set if using Postman features
      # POSTMAN_API_KEY: "postman-api-key"
      # POSTMAN_WORKSPACE_ID: "postman-workspace-id" 

Did this page help you?