-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (74 loc) · 2.22 KB
/
docker-compose.yml
File metadata and controls
77 lines (74 loc) · 2.22 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
services:
# CUDA variant (GPU support)
open-stt-server-cuda:
build:
context: .
dockerfile: Dockerfile.cuda
image: open-stt-server:cuda
ports:
- "${OPEN_STT_PORT:-8080}:8080"
volumes:
- hf_cache:/root/.cache/huggingface
environment:
OPEN_STT_PORT: "8080"
OPEN_STT_MODELS: "${OPEN_STT_MODELS:-whisper-base}"
OPEN_STT_DOWNLOAD: "${OPEN_STT_DOWNLOAD:-true}"
OPEN_STT_DEFAULT_MODEL: "${OPEN_STT_DEFAULT_MODEL:-whisper-tiny}"
OPEN_STT_FORCE_CPU: "${OPEN_STT_FORCE_CPU:-false}"
RUST_LOG: "${RUST_LOG:-info}"
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
profiles:
- cuda
# Debian-slim variant (default, better compatibility)
open-stt-server:
build:
context: .
dockerfile: Dockerfile.debian
image: ${OPEN_STT_IMAGE:-open-stt-server:debian}
ports:
- "${OPEN_STT_PORT:-8080}:8080"
volumes:
- hf_cache:/root/.cache/huggingface
environment:
OPEN_STT_PORT: "8080"
OPEN_STT_MODELS: "${OPEN_STT_MODELS:-whisper-base}"
OPEN_STT_DOWNLOAD: "${OPEN_STT_DOWNLOAD:-true}"
OPEN_STT_DEFAULT_MODEL: "${OPEN_STT_DEFAULT_MODEL:-whisper-tiny}"
OPEN_STT_FORCE_CPU: "${OPEN_STT_FORCE_CPU:-false}"
OPEN_STT_API_KEY: "${OPEN_STT_API_KEY:-}"
RUST_LOG: "${RUST_LOG:-info}"
restart: unless-stopped
profiles:
- debian
- default
# Alpine variant (smaller image)
open-stt-server-alpine:
build:
context: .
dockerfile: Dockerfile.alpine
image: open-stt-server:alpine
ports:
- "${OPEN_STT_PORT:-8080}:8080"
volumes:
- hf_cache:/root/.cache/huggingface
environment:
OPEN_STT_PORT: "8080"
OPEN_STT_MODELS: "${OPEN_STT_MODELS:-whisper-base}"
OPEN_STT_DOWNLOAD: "${OPEN_STT_DOWNLOAD:-true}"
OPEN_STT_DEFAULT_MODEL: "${OPEN_STT_DEFAULT_MODEL:-whisper-tiny}"
OPEN_STT_FORCE_CPU: "${OPEN_STT_FORCE_CPU:-false}"
OPEN_STT_API_KEY: "${OPEN_STT_API_KEY:-}"
RUST_LOG: "${RUST_LOG:-info}"
restart: unless-stopped
profiles:
- alpine
volumes:
hf_cache:
driver: local