# 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
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
# ----------------------------------------------
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=
# 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=
# KAFKA CONNECT
# url where kafka connect is installed
-connect.url=http://localhost:8000/#/
+connect.url=http://connect:8083/#/
# ----------------------------------------------
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=
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
kafka-1-data:
kafka-2-data:
kafka-3-data:
+ mariadb: