X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=docker-compose.yml;h=ec0a963934dcb9dfb89fc571a091cab26841ab08;hb=fbd0ca0df5004d13a5e93cdb8373bafc60440c8b;hp=d04c6650952bda0313426fa3f61874a09ef8b89b;hpb=64251b8eafa2534c359e8e2fc243c17b5a97a61a;p=demos%2Fkafka%2Foutbox diff --git a/docker-compose.yml b/docker-compose.yml index d04c665..ec0a963 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,6 +2,33 @@ version: "3" services: + zookeeper: + image: confluentinc/cp-zookeeper:6.0.1 + ports: + - 2181:2181 + environment: + ZOOKEEPER_CLIENT_PORT: 2181 + + kafka: + image: confluentinc/cp-kafka:6.0.1 + ports: + - 9092:9092 + environment: + KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 + KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT + KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092 + KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 + depends_on: + - zookeeper + + kafkacat: + image: confluentinc/cp-kafkacat:6.0.1 + command: "kafkacat -C -b kafka:9093 -q -t outbox -K:" + tty: true + depends_on: + - kafka + jdbc: image: juplo/data-jdbc:polling-outbox-2-SNAPSHOT ports: @@ -11,6 +38,14 @@ services: depends_on: - postgres + outbox: + image: juplo/outbox-delivery:polling-outbox-2-SNAPSHOT + environment: + spring.profiles.active: prod + depends_on: + - postgres + - kafka + postgres: image: postgres:13