forked from farbodahm/stateful-stream-processing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.docker-compose.yml
54 lines (51 loc) · 1.27 KB
/
app.docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
services:
producer:
build:
context: .
args:
KAFKA_BROKER: "kafka:29092"
SCHEMA_REGISTRY_URL: "http://schema-registry:8081"
SAMPLE_TWITTER_DATA_PATH: "assets/tweets.txt"
dockerfile: producer.Dockerfile
networks:
- stateful-stream-processing-network
consumer:
build:
context: .
args:
KAFKA_BROKER: "kafka:29092"
SCHEMA_REGISTRY_URL: "http://schema-registry:8081"
CONSUMER_GROUP: "Consumer1"
DB_HOST: "db"
DB_PORT: "5432"
DB_USERNAME: "postgres"
DB_PASSWORD: "postgres"
DB_NAME: twitter
dockerfile: consumer.Dockerfile
networks:
- stateful-stream-processing-network
depends_on:
- producer
processor:
build:
context: .
args:
DB_HOST: "db"
DB_PORT: "5432"
DB_USERNAME: "postgres"
DB_PASSWORD: "postgres"
DB_NAME: "twitter"
WS_HOST: "0.0.0.0"
WS_PORT: "8765"
WS_WRITE_POOL_SIZE: "10"
dockerfile: processor.Dockerfile
networks:
- stateful-stream-processing-network
ports:
- "8765:8765"
depends_on:
- consumer
networks:
stateful-stream-processing-network:
name: stateful_stream_processing_network
external: true