+++ /dev/null
-FROM openjdk:8-jre-alpine
-VOLUME /tmp
-COPY target/*.jar /opt/app.jar
-ENTRYPOINT [ "/usr/bin/java", "-jar", "/opt/app.jar" ]
-CMD []
+++ /dev/null
-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