Skip to content

Commit 92df286

Browse files
authored
BE: Update development compose file (#181)
1 parent be07c10 commit 92df286

File tree

3 files changed

+34
-6
lines changed

3 files changed

+34
-6
lines changed

documentation/compose/ui-arm64.yaml renamed to .dev/dev_arm64.yaml

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
# This is a compose file designed for arm64/Apple Silicon systems
2+
# To adapt this to x86 please find and replace ".arm64" with empty
3+
14
# ARM64 supported images for kafka can be found here
25
# https://hub.docker.com/r/confluentinc/cp-kafka/tags?page=1&name=arm64
36
---
4-
version: '2'
7+
version: '3.8'
8+
name: "kafbat-ui-dev"
9+
510
services:
11+
612
kafbat-ui:
713
container_name: kafbat-ui
814
image: ghcr.io/kafbat/kafka-ui:latest
@@ -12,14 +18,16 @@ services:
1218
- kafka0
1319
- schema-registry0
1420
- kafka-connect0
21+
- ksqldb0
1522
environment:
1623
KAFKA_CLUSTERS_0_NAME: local
1724
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka0:29092
1825
KAFKA_CLUSTERS_0_METRICS_PORT: 9997
1926
KAFKA_CLUSTERS_0_SCHEMAREGISTRY: http://schema-registry0:8085
2027
KAFKA_CLUSTERS_0_KAFKACONNECT_0_NAME: first
2128
KAFKA_CLUSTERS_0_KAFKACONNECT_0_ADDRESS: http://kafka-connect0:8083
22-
DYNAMIC_CONFIG_ENABLED: 'true' # not necessary, added for tests
29+
KAFKA_CLUSTERS_0_KSQLDBSERVER: http://ksqldb0:8088
30+
DYNAMIC_CONFIG_ENABLED: 'true'
2331
KAFKA_CLUSTERS_0_AUDIT_TOPICAUDITENABLED: 'true'
2432
KAFKA_CLUSTERS_0_AUDIT_CONSOLEAUDITENABLED: 'true'
2533

@@ -46,9 +54,10 @@ services:
4654
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
4755
KAFKA_LOG_DIRS: '/tmp/kraft-combined-logs'
4856
KAFKA_JMX_PORT: 9997
57+
# KAFKA_JMX_HOSTNAME: localhost # uncomment this line and comment the next one if running with kafka-ui as a jar
4958
KAFKA_JMX_OPTS: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=kafka0 -Dcom.sun.management.jmxremote.rmi.port=9997
5059
volumes:
51-
- ./scripts/update_run.sh:/tmp/update_run.sh
60+
- ../documentation/compose/scripts/update_run.sh:/tmp/update_run.sh
5261
command: "bash -c 'if [ ! -f /tmp/update_run.sh ]; then echo \"ERROR: Did you forget the update_run.sh file that came with this docker-compose.yml file?\" && exit 1 ; else /tmp/update_run.sh && /etc/confluent/docker/run ; fi'"
5362

5463
schema-registry0:
@@ -90,12 +99,30 @@ services:
9099
CONNECT_INTERNAL_KEY_CONVERTER: org.apache.kafka.connect.json.JsonConverter
91100
CONNECT_INTERNAL_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter
92101
CONNECT_REST_ADVERTISED_HOST_NAME: kafka-connect0
93-
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components"
102+
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components,/usr/local/share/kafka/plugins,/usr/share/filestream-connectors"
103+
104+
ksqldb0:
105+
image: confluentinc/ksqldb-server:0.18.0
106+
depends_on:
107+
- kafka0
108+
- kafka-connect0
109+
- schema-registry0
110+
environment:
111+
KSQL_CUB_KAFKA_TIMEOUT: 120
112+
KSQL_LISTENERS: http://0.0.0.0:8088
113+
KSQL_BOOTSTRAP_SERVERS: PLAINTEXT://kafka0:29092
114+
KSQL_KSQL_LOGGING_PROCESSING_STREAM_AUTO_CREATE: "true"
115+
KSQL_KSQL_LOGGING_PROCESSING_TOPIC_AUTO_CREATE: "true"
116+
KSQL_KSQL_CONNECT_URL: http://kafka-connect0:8083
117+
KSQL_KSQL_SCHEMA_REGISTRY_URL: http://schema-registry0:8085
118+
KSQL_KSQL_SERVICE_ID: my_ksql_1
119+
KSQL_KSQL_HIDDEN_TOPICS: '^_.*'
120+
KSQL_CACHE_MAX_BYTES_BUFFERING: 0
94121

95122
kafka-init-topics:
96123
image: confluentinc/cp-kafka:7.2.1.arm64
97124
volumes:
98-
- ./data/message.json:/data/message.json
125+
- ../documentation/compose/data/message.json:/data/message.json
99126
depends_on:
100127
- kafka0
101128
command: "bash -c 'echo Waiting for Kafka to be ready... && \

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

documentation/compose/DOCKER_COMPOSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Descriptions of docker-compose configurations (*.yaml)
22

33
1. [kafka-ui.yaml](./kafbat-ui.yaml) - Default configuration with 2 kafka clusters with two nodes of Schema Registry, one kafka-connect and a few dummy topics.
4-
2. [kafka-ui-arm64.yaml](./ui-arm64.yaml) - Default configuration for ARM64(Mac M1) architecture with 1 kafka cluster without zookeeper with one node of Schema Registry, one kafka-connect and a few dummy topics.
4+
2. [kafka-ui-arm64.yaml](../../.dev/dev_arm64.yaml) - Default configuration for ARM64(Mac M1) architecture with 1 kafka cluster without zookeeper with one node of Schema Registry, one kafka-connect and a few dummy topics.
55
3. [kafka-clusters-only.yaml](./kafka-clusters-only.yaml) - A configuration for development purposes, everything besides `kafka-ui` itself (to be run locally).
66
4. [kafka-ui-ssl.yml](./kafka-ssl.yml) - Connect to Kafka via TLS/SSL
77
5. [kafka-cluster-sr-auth.yaml](./cluster-sr-auth.yaml) - Schema registry with authentication.

0 commit comments

Comments
 (0)