-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
162 lines (152 loc) · 3.78 KB
/
docker-compose.yml
File metadata and controls
162 lines (152 loc) · 3.78 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
name: vexa
# version: '3.8' # Removed obsolete version
services:
api-gateway:
build:
context: .
dockerfile: services/api-gateway/Dockerfile
ports:
- "8056:8000"
environment:
- ADMIN_API_URL=http://admin-api:8001
- BOT_MANAGER_URL=http://bot-manager:8080
- TRANSCRIPTION_COLLECTOR_URL=http://transcription-collector:8000
- LOG_LEVEL=DEBUG
depends_on:
admin-api:
condition: service_started
bot-manager:
condition: service_started
transcription-collector:
condition: service_started
networks:
- vexa_default
restart: unless-stopped
admin-api:
build:
context: .
dockerfile: services/admin-api/Dockerfile
ports:
- "8057:8001"
env_file:
- .env
environment:
- REDIS_URL=redis://redis:6379/0
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=vexa
- DB_USER=postgres
- DB_PASSWORD=postgres
- LOG_LEVEL=DEBUG
depends_on:
redis:
condition: service_started
postgres:
condition: service_healthy
networks:
- vexa_default
restart: unless-stopped
bot-manager:
build:
context: .
dockerfile: services/bot-manager/Dockerfile
environment:
- REDIS_URL=redis://redis:6379/0
- BOT_IMAGE=vexa-bot:latest
- DOCKER_NETWORK=vexa_vexa_default
- LOG_LEVEL=DEBUG
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=vexa
- DB_USER=postgres
- DB_PASSWORD=postgres
- DOCKER_HOST=unix://var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
redis:
condition: service_started
postgres:
condition: service_healthy
networks:
- vexa_default
restart: unless-stopped
whisperlive:
build:
context: .
dockerfile: services/WhisperLive/Dockerfile.project
volumes:
- ./hub:/root/.cache/huggingface/hub
- ./services/WhisperLive/models:/app/models
environment:
- TRANSCRIPTION_COLLECTOR_URL=ws://transcription-collector:8000/collector
command: ["--port", "9090", "--backend", "faster_whisper", "-fw", "/root/.cache/huggingface/hub/models--Systran--faster-whisper-medium/snapshots/08e178d48790749d25932bbc082711ddcfdfbc4f"]
ports:
- "9090:9090"
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['3']
capabilities: [gpu]
depends_on:
transcription-collector:
condition: service_started
networks:
- vexa_default
restart: unless-stopped
transcription-collector:
build:
context: .
dockerfile: services/transcription-collector/Dockerfile
ports:
- "8123:8000"
environment:
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=vexa
- DB_USER=postgres
- DB_PASSWORD=postgres
- REDIS_HOST=redis
- REDIS_PORT=6379
- LOG_LEVEL=DEBUG
depends_on:
redis:
condition: service_started
postgres:
condition: service_healthy
networks:
- vexa_default
restart: unless-stopped
redis:
image: redis:7.0-alpine
volumes:
- redis-data:/data
networks:
- vexa_default
restart: unless-stopped
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_DB=vexa
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d vexa"]
interval: 5s
timeout: 5s
retries: 5
networks:
- vexa_default
restart: unless-stopped
ports:
- "5438:5432"
volumes:
redis-data:
postgres-data:
networks:
vexa_default:
driver: bridge