Further simplified the example: Knowledge about the key is not required
[demos/kafka/deduplication] / docker-compose.yml
1 version: "3.2"
2
3 services:
4   zookeeper:
5     image: confluentinc/cp-zookeeper:5.3.0
6     ports:
7       - 2181:2181
8     environment:
9       ZOOKEEPER_CLIENT_PORT: 2181
10
11   kafka:
12     image: confluentinc/cp-kafka:5.3.0
13     ports:
14       - 9092:9092
15     environment:
16       KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
17       KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
18       KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
19       KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
20     depends_on:
21       - zookeeper
22
23   deduplicator:
24     image: juplo/deduplicator:streams
25     ports:
26       - 8080:8080
27     environment:
28       server.address: deduplicator
29     depends_on:
30       - zookeeper
31       - kafka
32
33 networks:
34   default:
35     external:
36       name: trion