jakobhviid / Dashboard-Interface-Docker

MIT License
0 stars 0 forks source link

About

This image acts as the control center of the CFEI kafka / zookeeper stack. It is a graphic interface providing multiple features.

These features are:

How to use

This docker-compose file shows the deployment of the dashboard-interface container. The website will run on port 80.

version: "3"

services:
  interface:
    image: cfei/dashboard-interface
    container_name: dashboard-interface
    ports:
      - 80:80
      - 5000:5000
    environment: 
      DASHBOARDI_API_KEY: cfeisecurekey
      DASHBOARDI_JWT_KEY: cfeisecureJWTkey
      DASHBOARDI_JWT_ISSUER: https://<<HOST_DNS>>:5000
      DASHBOARDI_POSTGRES_CONNECTION_STRING: "Host=<<postgres_ip>>;Port=5432;Database=<<database_name>;Username=<<database_user>>;Password=<<database_password>>;"
      DASHBOARDI_HOST_DNS: http://localhost

Configuration

The image consists of two parts. A graphical interface and a socket server. The socket server is also a standard http server with a single controller. This controller is for user management (JSON Web Tokens).

Required environment variables

Optional environment variables

Kerberos Example

version: "3"

services:
  interface:
    image: cfei/dashboard-interface
    container_name: dashboard-interface
    ports:
      - 80:80
      - 5000:5000
    environment:
      DASHBOARDI_API_KEY: cfeisecurekey
      DASHBOARDI_JWT_KEY: cfeisecureJWTkey
      DASHBOARDI_JWT_ISSUER: https://<<HOST_DNS>>:5000
      DASHBOARDI_POSTGRES_CONNECTION_STRING: "Host=<<postgres_ip>>;Port=5432;Database=<<database_name>;Username=<<database_user>>;Password=<<database_password>>;"
      DASHBOARDI_HOST_DNS: http://localhost
      DASHBOARDI_KERBEROS_PUBLIC_URL: <<kerberos_ip>>
      DASHBOARDI_KERBEROS_REALM: KAFKA.SECURE
      DASHBOARDI_KERBEROS_API_URL: http://<<kerberos_ip>>:6000/get-keytab
      DASHBOARDI_KERBEROS_API_SERVICE_USERNAME: dashboardinterface
      DASHBOARDI_KERBEROS_API_SERVICE_PASSWORD: dashboardInterfacePassword