-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
91 lines (81 loc) · 2.13 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '2'
services:
web:
image: wst-image:v0.2
command: bash -c "python3 ./db_versioning/db_versioning.py --mongo mongodb://db:27017 && python3 -m web_speech_trainer $APP_CONF"
restart: always
ports:
- 5000:5000
depends_on:
- db
- training_processor
volumes:
- ../database-dump:/app/dump/database-dump/
audio_processor:
image: wst-image:v0.2
command: python3 -m audio_processor $APP_CONF
restart: always
depends_on:
- db
- whisper
- presentation_processor
recognized_audio_processor:
image: wst-image:v0.2
command: python3 -m recognized_audio_processor $APP_CONF
restart: always
depends_on:
- db
- audio_processor
- presentation_processor
presentation_processor:
image: wst-image:v0.2
build: .
command: python3 -m presentation_processor $APP_CONF
restart: always
depends_on:
- db
volumes:
- nltk_data:/root/nltk_data
recognized_presentation_processor:
image: wst-image:v0.2
command: python3 -m recognized_presentation_processor $APP_CONF
restart: always
depends_on:
- db
- presentation_processor
training_processor:
image: wst-image:v0.2
command: python3 -m training_processor $APP_CONF
restart: always
depends_on:
- db
- recognized_audio_processor
- recognized_presentation_processor
volumes:
- nltk_data:/root/nltk_data
task_attempt_to_pass_back_processor:
image: wst-image:v0.2
command: python3 -m task_attempt_to_pass_back_processor $APP_CONF
restart: always
depends_on:
- db
db:
image: "mongo:4.4.1"
restart: always
command:
- '--wiredTigerCacheSizeGB=2'
volumes:
- ../mongo_data:/data/db
whisper:
image: "onerahmet/openai-whisper-asr-webservice:v1.3.0"
environment:
- ASR_MODEL=${WHISPER_ASR_MODEL:-tiny}
- ASR_ENGINE=${WHISPER_ASR_ENGINE:-openai_whisper}
restart: always
cpuset: ${WHISPER_CPU:-0,1}
mem_limit: ${WHISPER_MEM_LIMIT:-5g}
volumes:
- whisper_models:/root/.cache/whisper
volumes:
whisper_models:
nltk_data: