-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (60 loc) · 1.39 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
services:
# Fetch videos/comments data
comments:
build:
context: ./images/comments
args:
USERID: "${USERID:-0}"
GROUPID: "${GROUPID:-0}"
user: "${USERID:-0}:${GROUPID:-0}"
container_name: comments
volumes:
- ./data:/app/data:rw
env_file: conf.env
# Compute sentiment and topic info
sentiment-topic:
build:
context: ./images/sentiment-topic
args:
USERID: "${USERID:-0}"
GROUPID: "${GROUPID:-0}"
user: "${USERID:-0}:${GROUPID:-0}"
container_name: sentiment-topic
volumes:
- ./data:/app/data:rw
env_file: conf.env
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities:
- gpu
# Run the streamlit app (if MODE=run) or rebuild the database
# it uses (if MODE=refresh)
streamlit:
build:
context: ./images/streamlit
args:
USERID: "${USERID:-0}"
GROUPID: "${GROUPID:-0}"
user: "${USERID:-0}:${GROUPID:-0}"
environment:
- MODE=${MODE:-run}
container_name: streamlit
hostname: streamlit
networks:
- stack
ports:
- target: 8504
published: 8504
protocol: tcp
mode: host
volumes:
- ./data:/app/data:rw
restart: on-failure
env_file: conf.env
networks:
stack:
driver: bridge