From: Kai Moritz Date: Sun, 8 Oct 2023 10:28:57 +0000 (+0200) Subject: Web-UI KCenter konfiguriert X-Git-Tag: config/kcenter---2023-10-signal X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fconfig%2Fkcenter;p=demos%2Fkafka%2Ftraining Web-UI KCenter konfiguriert * Elasticsearch-Server fehlt noch, macht bei der Funktionalität keinen größeren Unterschied. --- diff --git a/docker/application.properties b/docker/application.properties index a1dd146..550ab65 100644 --- a/docker/application.properties +++ b/docker/application.properties @@ -3,7 +3,7 @@ # url and port where application is published server.port=8080 -public.url=http://localhost:8080 +public.url=http://localhost:8888 # enable/disable debug logging level debug=false @@ -12,14 +12,14 @@ debug=false server.servlet.session.timeout=21600 # admin user/password to manage KafkaCenter -spring.security.user.name=admin -spring.security.user.password=admin +spring.security.user.name=juplo +spring.security.user.password=juplo # url and user/password for mysql database # if remote, make sure the user has adequate privileges (google "mysql grant privileges") -spring.datasource.url=jdbc:mysql://127.0.0.1:3306/kafka_center?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC +spring.datasource.url=jdbc:mysql://mariadb:3306/kafka_center?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC spring.datasource.username=root -spring.datasource.password=123456 +spring.datasource.password=juplo # ---------------------------------------------- @@ -29,10 +29,10 @@ spring.datasource.password=123456 monitor.enable=true # statistic collection frequency -monitor.collect.period.minutes=5 +monitor.collect.period.minutes=1 # elasticsearch config -monitor.elasticsearch.hosts=localhost:9200 +monitor.elasticsearch.hosts=elasticsearch:9200 monitor.elasticsearch.index=kafka_center_monitor #monitor.elasticsearch.auth.user= #monitor.elasticsearch.auth.password= @@ -42,7 +42,7 @@ monitor.elasticsearch.index=kafka_center_monitor # ALERTS # enable/disable functionality to send consumer group lag alerts -alert.enable=false +alert.enable=true # url of alert service (leave empty for regular internal application) alert.service= @@ -73,7 +73,7 @@ spring.mail.username=KafkaCenter@xaecbd.com # KAFKA CONNECT # url where kafka connect is installed -connect.url=http://localhost:8000/#/ +connect.url=http://connect:8083/#/ # ---------------------------------------------- @@ -138,4 +138,4 @@ collect.connector.job.enable=false collect.connector.job.period.minutes=4 # alert group api for alert -alert.alarm.group.api= \ No newline at end of file +alert.alarm.group.api= diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 875e209..dfb6f6a 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -190,23 +190,22 @@ services: depends_on: - zookeeper - akhq: - image: tchiotludo/akhq:0.23.0 + mariadb: + image: mariadb:10.11 + environment: + MARIADB_ROOT_PASSWORD: juplo + volumes: + - mariadb:/var/lib/mysql + - ./table_script.sql:/docker-entrypoint-initdb.d/table_script.sql:ro + + kcenter: + image: xaecbd/kafka-center:2.3.0 ports: - 8888:8080 - environment: - AKHQ_CONFIGURATION: | - akhq: - connections: - docker-kafka-server: - properties: - bootstrap.servers: "kafka:9092" - schema-registry: - url: "http://schema-registry:8085" - connect: - - name: "connect" - url: "http://connect:8083" + volumes: + - ./application.properties:/opt/app/kafka-center/config/application.properties:ro depends_on: + - mariadb - kafka-1 - kafka-2 - kafka-3 @@ -217,3 +216,4 @@ volumes: kafka-1-data: kafka-2-data: kafka-3-data: + mariadb: