Skip to content

Commit f352280

Browse files
committed
add docker & gitignore
1 parent 6ecf939 commit f352280

File tree

4 files changed

+57
-1
lines changed

4 files changed

+57
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target/
2+
.idea
3+
*.iml
4+
dependency-reduced-pom.xml

data-pipeline/docker-compose.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
version: '3'
22
services:
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+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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

0 commit comments

Comments
 (0)