-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
51 lines (46 loc) · 1.03 KB
/
docker-compose.yaml
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
version: "3.8"
services:
cassandra:
image: cassandra:3.11.8
expose:
- 9042
zookeeper:
image: "bitnami/zookeeper:latest"
ports:
- "2181:2181"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: "bitnami/kafka:latest"
ports:
- "9092:9092"
environment:
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
- KAFKA_CFG_BROKER_ID=1
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
depends_on:
- zookeeper
producer:
build: ./producer
environment:
BROKER_URL: kafka:9092
WEATHER_API_TOKEN: f857d120fca3c9d9138f63e95df28464
depends_on:
- kafka
sparkstreaming:
build: ./sparkstreaming
environment:
BROKER_URL: kafka:9092
ZOOKEEPER_URL: zookeeper:2181
CASSANDRA_HOST: cassandra
depends_on:
- cassandra
- kafka
node-server:
build: ./node-server
ports:
- "8001:8001"
depends_on:
- kafka