Skip to content

Commit 02affb2

Browse files
authored
Merge pull request #33 from geopython/pubsub-kafka
add Kafka setup to Pub/Sub example
2 parents 6943ede + ffd3729 commit 02affb2

11 files changed

Lines changed: 16 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ENV PYGEOAPI_CONFIG=/pygeoapi/local.config.yml
3535
ENV PYGEOAPI_OPENAPI=/pygeoapi/local.openapi.yml
3636
ENV PYGEOAPI_ASYNCAPI=/pygeoapi/local.asyncapi.yml
3737

38-
COPY ./docker/pygeoapi-pubsub-demo.config.yml /pygeoapi/local.config.yml
38+
COPY ./pygeoapi/pygeoapi-pubsub-demo.config.yml /pygeoapi/local.config.yml
3939

4040
RUN apt-get update && \
4141
apt-get install -y curl && \
File renamed without changes.
File renamed without changes.
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
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)