WIP
[demos/spring/data-jdbc] / docker-compose.yml
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644 (file)
index 0000000..23d023f
--- /dev/null
@@ -0,0 +1,44 @@
+version: "2"
+
+services:
+  zookeeper:
+    image: "confluentinc/cp-zookeeper:latest"
+    hostname: zookeeper
+    networks:
+      - tx
+    ports:
+      - 2181:2181
+    environment:
+      ZOOKEEPER_CLIENT_PORT: 2181
+
+  kafka:
+    image: "confluentinc/cp-kafka:latest"
+    hostname: kafka
+    networks:
+      - tx
+    depends_on:
+      - zookeeper
+    ports:
+      - 9092:9092
+    environment:
+      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
+      KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
+      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
+      KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
+      KAFKA_LISTENERS: INSIDE://:9093,OUTSIDE://:9092
+      KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
+
+  outbox:
+    image: "outbox:latest"
+    networks:
+      - tx
+    ports:
+      - 8080:8080
+    environment:
+      GPS_BOOTSTRAP_SERVERS: kafka:9093
+    depends_on:
+      - kafka
+
+networks:
+  tx:
+    driver: bridge