Kong with DB admin UI

version: '3.9'

x-kong-config: &kong-env
  KONG_DATABASE: postgres
  KONG_PG_HOST: 192.168.2.48
  KONG_PG_DATABASE: kong
  KONG_PG_USER: postgres
  KONG_PG_PASSWORD: system
  KONG_PG_PORT: 5432
  KONG_PG_SCHEMA: public

services:
  migration:
    image: kong:latest
    environment:
      <<: *kong-env
    command: kong migrations bootstrap
  konga:
    image: pantsel/konga
    environment:
      NODE_ENV: production
    ports:
      - "1337:1337"

  ui:
    image: pocketdigi/kong-admin-ui:0.5.3
    ports:
      - "8899:80"
  kong:
    image: kong:latest
    environment:
      KONG_ADMIN_ACCESS_LOG: /dev/stdout
      KONG_ADMIN_ERROR_LOG: /dev/stderr
      KONG_PROXY_LISTEN: 0.0.0.0:8000
      KONG_ADMIN_LISTEN: 0.0.0.0:8001, 0.0.0.0:8444 ssl
      KONG_PROXY_ACCESS_LOG: /dev/stdout
      KONG_PROXY_ERROR_LOG: /dev/stderr
      #KONG_DECLARATIVE_CONFIG: "/opt/kong/kong.yaml"
      <<: *kong-env
    ports:
      - "8000:8000"
      - "8444:8444"
      - "8001:8001"
    volumes:
      - ./kong:/opt/kong

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Design a site like this with WordPress.com
Get started