-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
95 lines (88 loc) · 2.11 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
92
93
94
95
services:
db:
container_name: "mongo-db"
image: mongo:6.0
restart: unless-stopped
env_file: .env
volumes:
- db-data:/data/db
- db-conf:/data/configdb
ports:
- "127.0.0.1:27018:27017"
healthcheck:
test: mongosh --eval 'db.runCommand("ping")' --quiet
interval: 2m
timeout: 5s
retries: 3
start_period: 45s
start_interval: 15s
bot:
container_name: "bot"
build:
context: .
dockerfile: Dockerfile
image: bot
restart: unless-stopped
env_file: .env
depends_on:
db:
condition: service_healthy
silero-tts-service:
condition: service_healthy
whisper-asr-webservice:
condition: service_healthy
zookeeper:
condition: service_started
kafka:
condition: service_started
silero-tts-service:
image: "navatusein/silero-tts-service:1.0.0"
container_name: "silero-tts-service"
restart: unless-stopped
env_file: .env
healthcheck:
test: curl -is localhost:9898 | head -n 1 | grep 200 || exit 1
interval: 2m
timeout: 5s
retries: 3
start_period: 45s
start_interval: 15s
deploy:
resources:
limits:
memory: 2G
whisper-asr-webservice:
image: "onerahmet/openai-whisper-asr-webservice:v1.2.0"
container_name: "whisper-asr-webservice"
restart: unless-stopped
env_file: .env
environment:
- ASR_MODEL_PATH=/data/whisper
volumes:
- whisper-data:/data/whisper/
healthcheck:
test: timeout 3 bash -c "</dev/tcp/localhost/9000"; echo $?
interval: 2m
timeout: 5s
retries: 3
start_period: 45s
start_interval: 15s
zookeeper:
image: "wurstmeister/zookeeper"
container_name: "zookeeper"
volumes:
- zookeeper-data:/opt/zookeeper-3.4.13/data
- zookeeper-conf:/opt/zookeeper-3.4.13/conf
kafka:
image: "wurstmeister/kafka:2.13-2.8.1"
container_name: "kafka"
env_file: .env
volumes:
- kafka-data:/kafka
volumes:
db-data:
db-conf:
whisper-data:
zookeeper-data:
zookeeper-conf:
kafka-data: