Skip to content

Commit 78d208d

Browse files
Stu-conduktorBStarmerSmithsderosiaux
authored
Versions, readme, M4 workaround (#158)
* Bump confluent versions * Tidy README. Add M4 workaround. * Add M4 workaround to compose * Remove obsolete version start of file * Remove broken gh action actions-setup-docker * typo Co-authored-by: Stéphane Derosiaux <sderosiaux@conduktor.io> * update logo link * use smaller logo * add text with logo * Move logo above title --------- Co-authored-by: Ben Starmer-Smith <bstarmersmith@conduktor.io> Co-authored-by: Stéphane Derosiaux <sderosiaux@conduktor.io>
1 parent e8acf6d commit 78d208d

9 files changed

+60
-89
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535

3636

3737
# Runs a set of commands using the runners shell
38-
- uses: docker-practice/actions-setup-docker@master
3938
- name: run test single 2
4039
run: ./test.sh zk-single-kafka-single.yml 2
4140

README.md

Lines changed: 30 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,44 @@
11
[![Actions Status](https://github.com/conduktor/kafka-stack-docker-compose/workflows/CI/badge.svg)](https://github.com/conduktor/kafka-stack-docker-compose/actions)
22

3-
# An open-source project by [![Conduktor.io](https://www.conduktor.io/images/logo.svg)](https://conduktor.io/)
3+
![logo](https://raw.githubusercontent.com/conduktor/conduktor.io-public/refs/heads/main/logo/logo-signature.png)
4+
# An open-source project by [Conduktor](https://conduktor.io/)
45

5-
This project is sponsored by [Conduktor.io](https://www.conduktor.io/), a graphical desktop user interface for Apache Kafka.
6+
This project is sponsored by [Conduktor.io](https://www.conduktor.io/), the Enterprise Data Management
7+
Platform for Streaming.
68

79
Once you have started your cluster, you can use Conduktor to easily manage it.
810
Just connect against `localhost:9092`. If you are on Mac or Windows and want to connect from another container, use `host.docker.internal:29092`
911

1012
# kafka-stack-docker-compose
1113

12-
This replicates as well as possible real deployment configurations, where you have your zookeeper servers and kafka servers actually all distinct from each other. This solves all the networking hurdles that comes with Docker and docker compose, and is compatible cross platform.
14+
This replicates as well as possible real deployment configurations, where you have your zookeeper servers and Kafka servers distinct from each other. This solves all the networking hurdles that comes with Docker and Docker Compose, and is compatible cross platform.
1315

14-
**UPDATE**: No /etc/hosts file changes are necessary anymore. Explanations at: https://rmoff.net/2018/08/02/kafka-listeners-explained/
16+
## Stack
1517

16-
## Stack version
18+
- Conduktor Platform
19+
- Zookeeper version
20+
- Kafka version
21+
- Kafka Schema Registry
22+
- Kafka Rest Proxy
23+
- Kafka Connect
24+
- ksqlDB Server
25+
- Zoonavigator
1726

18-
- Conduktor Platform: latest
19-
- Zookeeper version: 3.6.3 (Confluent 7.3.2)
20-
- Kafka version: 3.3.0 (Confluent 7.3.2)
21-
- Kafka Schema Registry: Confluent 7.3.2
22-
- Kafka Rest Proxy: Confluent 7.3.2
23-
- Kafka Connect: Confluent 7.3.2
24-
- ksqlDB Server: Confluent 7.3.2
25-
- Zoonavigator: 1.1.1
26-
27-
For a UI tool to access your local Kafka cluster, use the free version of [Conduktor](https://www.conduktor.io/get-started)
27+
For a UI tool to access your local Kafka cluster, use the free version of [Conduktor](https://www.conduktor.io/get-started).
2828

2929
# Requirements
3030

31-
Kafka will be exposed on `127.0.0.1` or `DOCKER_HOST_IP` if set in the environment.
32-
(You probably don't need to set it if you're not using Docker-Toolbox)
33-
34-
## Docker-Toolbox
35-
Docker toolbox is [deprecated](https://github.com/docker-archive/toolbox) and not maintained anymore for several years.
36-
We can't guarantee this stack will work with Docker Toolbox, but if you want to try anyway, please export your environment before starting the stack:
37-
```
38-
export DOCKER_HOST_IP=192.168.99.100
39-
```
40-
(your docker machine IP is usually `192.168.99.100`)
31+
Kafka will be exposed on `127.0.0.1`.
4132

42-
## Apple M1 support
43-
Confluent platform supports Apple M1 (ARM64) since version `7.2.0`! Basically, this stack will work out of the box.
33+
## Apple M4 Support
4434

45-
If you want to downgrade confluent platform version, there are two ways:
35+
At the time of writing there is an issue with Apple M4 chip machines and running certain Java based Docker images.
4636

47-
1. Add `platform: linux/amd64`. It will work as docker is able to emulate AMD64 instructions.
48-
2. Previous versions have been [built](https://github.com/arm64-compat/confluent-platform) for ARM64 by the community. If you want to use it, just change the image in the corresponding yml. Since it is a not an official image, use it at your own risks.
37+
Modify the `conduktor.yml` file, uncomment the environment variable `CONSOLE_JAVA_OPTS: "-XX:UseSVE=0"`.
4938

5039
## Full stack
5140

52-
To ease you journey with kafka just connect to [localhost:8080](http://localhost:8080/)
53-
54-
login: `admin@admin.io`
55-
password: `admin`
41+
To ease you journey with Kafka just connect to [localhost:8080](http://localhost:8080/)
5642

5743
- Conduktor-platform: `$DOCKER_HOST_IP:8080`
5844
- Single Zookeeper: `$DOCKER_HOST_IP:2181`
@@ -63,12 +49,11 @@ password: `admin`
6349
- KSQL Server: `$DOCKER_HOST_IP:8088`
6450
- (experimental) JMX port at `$DOCKER_HOST_IP:9001`
6551

66-
Run with:
67-
```
68-
docker compose -f full-stack.yml up
69-
docker compose -f full-stack.yml down
70-
```
71-
** Note: if you find that you can not connect to [localhost:8080](http://localhost:8080/) please run `docker compose -f full-stack.yml build` to rebuild the port mappings.
52+
Run with:
53+
```
54+
docker compose -f full-stack.yml up
55+
docker compose -f full-stack.yml down
56+
```
7257

7358
## Single Zookeeper / Single Kafka
7459

@@ -86,7 +71,7 @@ docker compose -f zk-single-kafka-single.yml down
8671

8772
## Single Zookeeper / Multiple Kafka
8873

89-
If you want to have three brokers and experiment with kafka replication / fault-tolerance.
74+
If you want to have three brokers and experiment with Kafka replication / fault-tolerance.
9075

9176
- Zookeeper will be available at `$DOCKER_HOST_IP:2181`
9277
- Kafka will be available at `$DOCKER_HOST_IP:9092,$DOCKER_HOST_IP:9093,$DOCKER_HOST_IP:9094`
@@ -115,7 +100,7 @@ docker compose -f zk-multiple-kafka-single.yml down
115100

116101
## Multiple Zookeeper / Multiple Kafka
117102

118-
If you want to have three zookeeper nodes and three kafka brokers to experiment with production setup.
103+
If you want to have three zookeeper nodes and three Kafka brokers to experiment with production setup.
119104

120105
- Zookeeper will be available at `$DOCKER_HOST_IP:2181,$DOCKER_HOST_IP:2182,$DOCKER_HOST_IP:2183`
121106
- Kafka will be available at `$DOCKER_HOST_IP:9092,$DOCKER_HOST_IP:9093,$DOCKER_HOST_IP:9094`
@@ -181,9 +166,9 @@ A: yes. This is for testing only!!! Reduce the KAFKA_LOG_SEGMENT_BYTES to 16MB a
181166
KAFKA_LOG_RETENTION_BYTES: 134217728
182167
```
183168

184-
**Q: How do I expose kafka?**
169+
**Q: How do I expose Kafka?**
185170

186-
A: If you want to expose kafka outside of your local machine, you must set `KAFKA_ADVERTISED_LISTENERS` to the IP of the machine so that kafka is externally accessible. To achieve this you can set `LISTENER_DOCKER_EXTERNAL` to the IP of the machine.
171+
A: If you want to expose Kafka outside of your local machine, you must set `KAFKA_ADVERTISED_LISTENERS` to the IP of the machine so that Kafka is externally accessible. To achieve this you can set `LISTENER_DOCKER_EXTERNAL` to the IP of the machine.
187172
For example, if the IP of your machine is `50.10.2.3`, follow the sample mapping below:
188173

189174
```
@@ -195,7 +180,7 @@ For example, if the IP of your machine is `50.10.2.3`, follow the sample mapping
195180
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka2:19093,EXTERNAL://50.10.2.3:9093,DOCKER://host.docker.internal:29093
196181
```
197182

198-
**Q: How do I add connectors to kafka connect?**
183+
**Q: How do I add connectors to Kafka connect?**
199184

200185
Create a `connectors` directory and place your connectors there (usually in a subdirectory) `connectors/example/my.jar`
201186

conduktor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42

53
postgresql:
@@ -28,6 +26,7 @@ services:
2826
CDK_CLUSTERS_0_SCHEMAREGISTRY_URL: "http://kafka-schema-registry:8081"
2927
CDK_CLUSTERS_0_KAFKACONNECTS_0_URL: "http://kafka-connect:8083"
3028
CDK_CLUSTERS_0_KAFKACONNECTS_0_NAME: "full stack kafka connect"
29+
# CONSOLE_JAVA_OPTS: "-XX:UseSVE=0"
3130

3231
volumes:
3332
pg_data: {}

full-stack.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
version: '2.1'
2-
31
services:
42
zoo1:
5-
image: confluentinc/cp-zookeeper:7.3.2
3+
image: confluentinc/cp-zookeeper:7.8.0
64
hostname: zoo1
75
container_name: zoo1
86
ports:
@@ -13,7 +11,7 @@ services:
1311
ZOOKEEPER_SERVERS: zoo1:2888:3888
1412

1513
kafka1:
16-
image: confluentinc/cp-kafka:7.3.2
14+
image: confluentinc/cp-kafka:7.8.0
1715
hostname: kafka1
1816
container_name: kafka1
1917
ports:
@@ -38,7 +36,7 @@ services:
3836
- zoo1
3937

4038
kafka-schema-registry:
41-
image: confluentinc/cp-schema-registry:7.3.2
39+
image: confluentinc/cp-schema-registry:7.8.0
4240
hostname: kafka-schema-registry
4341
container_name: kafka-schema-registry
4442
ports:
@@ -53,7 +51,7 @@ services:
5351

5452

5553
kafka-rest-proxy:
56-
image: confluentinc/cp-kafka-rest:7.3.2
54+
image: confluentinc/cp-kafka-rest:7.8.0
5755
hostname: kafka-rest-proxy
5856
container_name: kafka-rest-proxy
5957
ports:
@@ -71,7 +69,7 @@ services:
7169

7270

7371
kafka-connect:
74-
image: confluentinc/cp-kafka-connect:7.3.2
72+
image: confluentinc/cp-kafka-connect:7.8.0
7573
hostname: kafka-connect
7674
container_name: kafka-connect
7775
ports:
@@ -113,7 +111,7 @@ services:
113111
114112
115113
ksqldb-server:
116-
image: confluentinc/cp-ksqldb-server:7.3.2
114+
image: confluentinc/cp-ksqldb-server:7.8.0
117115
hostname: ksqldb-server
118116
container_name: ksqldb-server
119117
ports:

zk-multiple-kafka-multiple-schema-registry.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
version: '2.1'
2-
31
services:
42
zoo1:
5-
image: confluentinc/cp-zookeeper:7.3.2
3+
image: confluentinc/cp-zookeeper:7.8.0
64
hostname: zoo1
75
container_name: zoo1
86
ports:
@@ -13,7 +11,7 @@ services:
1311
ZOOKEEPER_SERVERS: zoo1:2888:3888;zoo2:2888:3888;zoo3:2888:3888
1412

1513
zoo2:
16-
image: confluentinc/cp-zookeeper:7.3.2
14+
image: confluentinc/cp-zookeeper:7.8.0
1715
hostname: zoo2
1816
container_name: zoo2
1917
ports:
@@ -24,7 +22,7 @@ services:
2422
ZOOKEEPER_SERVERS: zoo1:2888:3888;zoo2:2888:3888;zoo3:2888:3888
2523

2624
zoo3:
27-
image: confluentinc/cp-zookeeper:7.3.2
25+
image: confluentinc/cp-zookeeper:7.8.0
2826
hostname: zoo3
2927
container_name: zoo3
3028
ports:
@@ -36,7 +34,7 @@ services:
3634

3735

3836
kafka1:
39-
image: confluentinc/cp-kafka:7.3.2
37+
image: confluentinc/cp-kafka:7.8.0
4038
hostname: kafka1
4139
container_name: kafka1
4240
ports:
@@ -57,7 +55,7 @@ services:
5755
- zoo3
5856

5957
kafka2:
60-
image: confluentinc/cp-kafka:7.3.2
58+
image: confluentinc/cp-kafka:7.8.0
6159
hostname: kafka2
6260
container_name: kafka2
6361
ports:
@@ -78,7 +76,7 @@ services:
7876
- zoo3
7977

8078
kafka3:
81-
image: confluentinc/cp-kafka:7.3.2
79+
image: confluentinc/cp-kafka:7.8.0
8280
hostname: kafka3
8381
container_name: kafka3
8482
ports:
@@ -99,7 +97,7 @@ services:
9997
- zoo3
10098

10199
kafka-schema-registry:
102-
image: confluentinc/cp-schema-registry:7.3.2
100+
image: confluentinc/cp-schema-registry:7.8.0
103101
hostname: kafka-schema-registry
104102
container_name: kafka-schema-registry
105103
depends_on:

zk-multiple-kafka-multiple.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
version: '2.1'
2-
31
services:
42
zoo1:
5-
image: confluentinc/cp-zookeeper:7.3.2
3+
image: confluentinc/cp-zookeeper:7.8.0
64
hostname: zoo1
75
container_name: zoo1
86
ports:
@@ -13,7 +11,7 @@ services:
1311
ZOOKEEPER_SERVERS: zoo1:2888:3888;zoo2:2888:3888;zoo3:2888:3888
1412

1513
zoo2:
16-
image: confluentinc/cp-zookeeper:7.3.2
14+
image: confluentinc/cp-zookeeper:7.8.0
1715
hostname: zoo2
1816
container_name: zoo2
1917
ports:
@@ -24,7 +22,7 @@ services:
2422
ZOOKEEPER_SERVERS: zoo1:2888:3888;zoo2:2888:3888;zoo3:2888:3888
2523

2624
zoo3:
27-
image: confluentinc/cp-zookeeper:7.3.2
25+
image: confluentinc/cp-zookeeper:7.8.0
2826
hostname: zoo3
2927
container_name: zoo3
3028
ports:
@@ -37,7 +35,7 @@ services:
3735

3836

3937
kafka1:
40-
image: confluentinc/cp-kafka:7.3.2
38+
image: confluentinc/cp-kafka:7.8.0
4139
hostname: kafka1
4240
container_name: kafka1
4341
ports:
@@ -58,7 +56,7 @@ services:
5856
- zoo3
5957

6058
kafka2:
61-
image: confluentinc/cp-kafka:7.3.2
59+
image: confluentinc/cp-kafka:7.8.0
6260
hostname: kafka2
6361
container_name: kafka2
6462
ports:
@@ -79,7 +77,7 @@ services:
7977
- zoo3
8078

8179
kafka3:
82-
image: confluentinc/cp-kafka:7.3.2
80+
image: confluentinc/cp-kafka:7.8.0
8381
hostname: kafka3
8482
container_name: kafka3
8583
ports:

zk-multiple-kafka-single.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
version: '2.1'
2-
31
services:
42
zoo1:
5-
image: confluentinc/cp-zookeeper:7.3.2
3+
image: confluentinc/cp-zookeeper:7.8.0
64
hostname: zoo1
75
container_name: zoo1
86
ports:
@@ -13,7 +11,7 @@ services:
1311
ZOOKEEPER_SERVERS: zoo1:2888:3888;zoo2:2888:3888;zoo3:2888:3888
1412

1513
zoo2:
16-
image: confluentinc/cp-zookeeper:7.3.2
14+
image: confluentinc/cp-zookeeper:7.8.0
1715
hostname: zoo2
1816
container_name: zoo2
1917
ports:
@@ -24,7 +22,7 @@ services:
2422
ZOOKEEPER_SERVERS: zoo1:2888:3888;zoo2:2888:3888;zoo3:2888:3888
2523

2624
zoo3:
27-
image: confluentinc/cp-zookeeper:7.3.2
25+
image: confluentinc/cp-zookeeper:7.8.0
2826
hostname: zoo3
2927
container_name: zoo3
3028
ports:
@@ -36,7 +34,7 @@ services:
3634

3735

3836
kafka1:
39-
image: confluentinc/cp-kafka:7.3.2
37+
image: confluentinc/cp-kafka:7.8.0
4038
hostname: kafka1
4139
container_name: kafka1
4240
ports:

0 commit comments

Comments
 (0)