-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dist.yml
69 lines (62 loc) · 1.47 KB
/
docker-compose.dist.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
version: "3.9"
x-shared-logs: &shared-logs
logging:
driver: "json-file"
options:
max-size: "10k"
x-shared-deploy: &shared-deploy
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
<<: *shared-logs
services:
server:
restart: "unless-stopped"
build:
context: ./server
volumes:
- ./config.yml:/app/config.yml
ports:
- "127.0.0.1:5000:5000"
<<: *shared-logs
server-swagger:
restart: "unless-stopped"
image: swaggerapi/swagger-ui:v5.17.14
ports:
- "127.0.0.1:5010:8080"
volumes:
- ./server/openapi.yaml:/openapi.yaml
environment:
SWAGGER_JSON: /openapi.yaml
<<: *shared-logs
whisper:
restart: "unless-stopped"
build:
context: ./whisper
args:
# В качестве версии можно указать: тег, ветку или коммит
- WHISPER_VERSION=v1.6.2
volumes:
- ./models:/app/models
ports:
- "127.0.0.1:9000:9000"
environment:
WHISPER_MODEL: base
#WHISPER_MODEL_QUANTIZATION: q4_0
#WHISPER_PROCESSORS: 1
#WHISPER_THREADS: 4
<<: *shared-deploy
whisper-swagger:
restart: "unless-stopped"
image: swaggerapi/swagger-ui:v5.17.14
ports:
- "127.0.0.1:9010:8080"
volumes:
- ./whisper/openapi.yaml:/openapi.yaml
environment:
SWAGGER_JSON: /openapi.yaml
<<: *shared-logs