-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
44 lines (39 loc) · 909 Bytes
/
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
version: "3"
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_CREATE_TOPICS: "inverted_index_app:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
kafka_producer:
image: kafka_producer:latest
build:
context: .
dockerfile: kafka_producer.Dockerfile
network_mode: host
depends_on:
- kafka
tokenizer:
image: tokenizer:latest
build:
context: .
dockerfile: tokenizer.Dockerfile
network_mode: "host"
main:
image: app_server:latest
build:
context: .
dockerfile: app_server.Dockerfile
network_mode: "host"
volumes:
- ./vocab/:/vocab
- ./datasets_v2/:/datasets_v2