WIP
[demos/kafka/outbox] / docker-compose.yml
1 version: "2"
2
3 services:
4   zookeeper:
5     image: "confluentinc/cp-zookeeper:latest"
6     hostname: zookeeper
7     networks:
8       - tx
9     ports:
10       - 2181:2181
11     environment:
12       ZOOKEEPER_CLIENT_PORT: 2181
13
14   kafka:
15     image: "confluentinc/cp-kafka:latest"
16     hostname: kafka
17     networks:
18       - tx
19     depends_on:
20       - zookeeper
21     ports:
22       - 9092:9092
23     environment:
24       KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
25       KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
26       KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
27       KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
28       KAFKA_LISTENERS: INSIDE://:9093,OUTSIDE://:9092
29       KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
30
31   outbox:
32     image: "outbox:latest"
33     networks:
34       - tx
35     ports:
36       - 8080:8080
37     environment:
38       GPS_BOOTSTRAP_SERVERS: kafka:9093
39     depends_on:
40       - kafka
41
42 networks:
43   tx:
44     driver: bridge