Gateway Compose

This section provides the Docker Compose file for running the Gateway 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:
  gateway:
    image: "orgherdalipi/lullagate-id-gateway:1.0.0"
    container_name: "gateway"
    ports:
      # [HOST:CONTAINER] Configure only the host port on the left (e.g., 4500);
      # The internal container port must remain 3000.
      - "4500:3000"
    # The environment values below are examples only and must be replaced with your actual configuration
    environment:
      # The license key must be generated from the Admin Console
      LICENSE_KEY: "license-abcd..."
      # 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 Dashboard API environment as well
      ENCRYPTION_KEY: "encryption-key"
      # Uncomment and set the OLD value when rotating the ENCRYPTION_KEY (see documentation for details). Only the Gateway can perform the rotation.
      # OLD_ENCRYPTION_KEY: "old-encryption-key"

Did this page help you?