-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (75 loc) · 2 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3.0"
services:
talis_app:
build:
context: .
image: app:latest
restart: always
container_name: talis_app
command: python bot.py
depends_on:
- zookeeper
- kafka
volumes:
- .:/var/www/talis
zookeeper:
image: jplock/zookeeper
container_name: zookeeper
volumes:
- zookeeper_config:/opt/zookeeper/conf
- zookeeper_data:/tmp/zookeeper
ports:
- "2181:2181"
kafka:
image: ches/kafka
restart: always
container_name: kafka
volumes:
- kafka_data:/data
- kafka_logs:/logs
ports:
- "7203:7203"
- "9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_ADVERTISED_HOST_NAME: ${HOST_IP}
ZOOKEEPER_IP: ${ZOOKEEPER_IP}
ZOOKEEPER_PORT: ${ZOOKEEPER_PORT}
#KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka0:29092,OUTSIDE://localhost:9092
#KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
talis_wikipedia:
build:
context: .
image: app:latest
restart: always
container_name: talis_wikipedia
command: python talis/services/wikipedia_service.py
depends_on:
- zookeeper
- kafka
talis_commands:
build:
context: .
image: app:latest
restart: always
container_name: talis_commands
command: python talis/services/command_service.py
depends_on:
- zookeeper
- kafka
talis_twitch_nlp:
build:
context: .
image: app:latest
restart: always
container_name: talis_twitch_nlp
command: python talis/services/twitch_nlp.py
depends_on:
- zookeeper
- kafka
volumes:
kafka_data:
kafka_logs:
zookeeper_data:
zookeeper_config: