-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (57 loc) · 1.32 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
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
HOSTNAME_COMMAND: "route -n | awk '/UG[ \t]/{print $$2}'"
KAFKA_CREATE_TOPICS: "bow_legs:3:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
server:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8888:8888"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
volumes:
- db_data:/app/data
- model_data:/app/model
depends_on:
- kafka
worker:
build:
context: ./backend
dockerfile: Dockerfile-worker
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
MODEL_JSON_URL: https://github.com/Kotwic4/BowLegs/releases/download/1.1/model_bk.json
MODEL_WEIGHTS_URL: https://github.com/Kotwic4/BowLegs/releases/download/1.1/trained_model.hdf5
volumes:
- db_data:/app/data
- model_data:/app/model
depends_on:
- kafka
ui:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "80:80"
environment:
API_URL: http://server:8888
depends_on:
- server
volumes:
db_data:
model_data: