-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (73 loc) · 1.55 KB
/
docker-compose.yml
File metadata and controls
80 lines (73 loc) · 1.55 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '2'
services:
zookeeper:
logging:
driver: none
image: 'bitnami/zookeeper:3'
ports:
- '2181:2181'
volumes:
- 'zookeeper_data:/bitnami'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
logging:
driver: none
image: 'bitnami/kafka:2'
ports:
- '9092:9092'
- '29092:29092'
volumes:
- 'kafka_data:/bitnami'
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,PLAINTEXT_HOST://:29092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
depends_on:
- zookeeper
tweet-exporter:
build: ./tweet-exporter
volumes:
- ${HOME}/.m2:/root/.m2
- ./tweet-exporter:/app
env_file:
- .env
ports:
- '8081:8081'
depends_on:
- kafka
term-exporter:
build: ./term-exporter
volumes:
- ${HOME}/.m2:/root/.m2
- ./term-exporter:/app
env_file:
- .env
ports:
- '8082:8082'
depends_on:
- kafka
frequency-api:
build: ./frequency-api
volumes:
- ${HOME}/.m2:/root/.m2
- ./frequency-api:/app
env_file:
- .env
ports:
- '8080:8080'
frontend:
build: ./frontend
volumes:
- ./frontend:/app
ports:
- '3000:3000'
env_file:
- .env
volumes:
zookeeper_data:
driver: local
kafka_data:
driver: local