Skip to content

Commit 9581a09

Browse files
committed
add Kafka setup to Pub/Sub example
1 parent 6943ede commit 9581a09

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

pubsub/docker-compose.override.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ services:
3838
http-broker:
3939
ports:
4040
- 5003:80
41+
kafka-broker:
42+
ports:
43+
- 9092:9092

pubsub/docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ services:
5757
- pygeoapi-pubsub-demo-net
5858
<<: *logging
5959

60+
kafka-broker:
61+
container_name: kafka-broker
62+
image: apache/kafka:latest
63+
restart: unless-stopped
64+
networks:
65+
- pygeoapi-pubsub-demo-net
66+
<<: *logging
67+
6068
pygeoapi-pubsub-demo-api:
6169
container_name: pygeoapi-pubsub-demo-api
6270
build:

0 commit comments

Comments
 (0)