File tree Expand file tree Collapse file tree 4 files changed +57
-1
lines changed Expand file tree Collapse file tree 4 files changed +57
-1
lines changed Original file line number Diff line number Diff line change 1+ target /
2+ .idea
3+ * .iml
4+ dependency-reduced-pom.xml
Original file line number Diff line number Diff line change 11version : ' 3'
22services :
3+ zookeeper :
4+ image : confluentinc/cp-zookeeper:5.1.2
5+ ports :
6+ - 2181:2181
7+ environment :
8+ ZOOKEEPER_CLIENT_PORT : 2181
9+ ZOOKEEPER_TICK_TIME : 2000
10+ kafka :
11+ image : confluentinc/cp-kafka:5.1.2
12+ ports :
13+ - 9092:9092
14+ - 29092:29092
15+ environment :
16+ KAFKA_BROKER_ID : 1
17+ KAFKA_ZOOKEEPER_CONNECT : zookeeper:2181
18+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP : PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
19+ KAFKA_ADVERTISED_LISTENERS : PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
20+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR : 1
21+ KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS : 0
22+ depends_on :
23+ - zookeeper
24+
25+ schema-registry :
26+ image : confluentinc/cp-schema-registry:5.1.2
27+ ports :
28+ - 8081:8081
29+ environment :
30+ SCHEMA_REGISTRY_HOST_NAME : localhost
31+ SCHEMA_REGISTRY_LISTENERS : http://0.0.0.0:8081
32+ SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS : PLAINTEXT://kafka:9092
33+ depends_on :
34+ - kafka
35+
36+ # DATA PIPELINE SERVICES
37+
338 # https://github.com/clue/docker-json-server
439 db-mock :
540 image : zhenik/json-server
@@ -8,4 +43,13 @@ services:
843 ports :
944 - " 3000:80"
1045 volumes :
11- - ./database.json:/data/db.json
46+ - ./database.json:/data/db.json
47+
48+ http-producer :
49+ image : zhenik/http-producer
50+ build : http-producer
51+
52+ http-materializer :
53+ image : zhenik/http-materializer
54+ build : http-materializer
55+
Original file line number Diff line number Diff line change 1+ FROM openjdk:8
2+ COPY ./target/http-materializer-1.0-SNAPSHOT.jar .
3+ COPY ./src/main/resources/config.yml .
4+ CMD java -jar http-materializer-1.0-SNAPSHOT.jar server config.yml
Original file line number Diff line number Diff line change 1+ FROM openjdk:8
2+ COPY ./target/http-producer-1.0-SNAPSHOT.jar .
3+ COPY ./src/main/resources/config.yml .
4+ CMD java -jar http-producer-1.0-SNAPSHOT.jar server config.yml
You can’t perform that action at this time.
0 commit comments