forked from samson-art/transcriptor-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
62 lines (59 loc) · 2.51 KB
/
docker-compose.example.yml
File metadata and controls
62 lines (59 loc) · 2.51 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
version: "3.9"
# Whisper fallback: when YouTube subtitles are missing, the app can transcribe via Whisper.
# - Local: run the whisper service below and set WHISPER_MODE=local, WHISPER_BASE_URL=http://whisper:9000.
# - API: set WHISPER_MODE=api, WHISPER_API_KEY=sk-... (and optionally WHISPER_API_BASE_URL).
# - Off: omit or set WHISPER_MODE=off (default).
#
# Optional Redis cache: see docs/caching.md for CACHE_MODE=redis and CACHE_REDIS_URL.
services:
transcriptor-mcp-api:
image: artsamsonov/transcriptor-mcp-api:latest
container_name: transcriptor-mcp-api
environment:
PORT: "3000"
HOST: "0.0.0.0"
YT_DLP_TIMEOUT: "60000"
SHUTDOWN_TIMEOUT: "60000"
YT_DLP_JS_RUNTIMES: "node"
COOKIES_FILE_PATH: "/cookies.txt"
# Optional: LOG_LEVEL, YT_DLP_SKIP_VERSION_CHECK, YT_DLP_REQUIRED, CACHE_* (see .env.example and docs/configuration.md)
# Optional: SENTRY_DSN, SENTRY_ENVIRONMENT, SENTRY_RELEASE (see docs/sentry.md)
# Whisper fallback (local container)
WHISPER_MODE: "local"
WHISPER_BASE_URL: "http://whisper:9000"
WHISPER_TIMEOUT: "600000"
# Optional: max time for background Whisper HTTP (default max(30m, 3×WHISPER_TIMEOUT)); "0" = no abort
# WHISPER_BACKGROUND_TIMEOUT: "3600000"
# Without Whisper: comment out the three lines above or set WHISPER_MODE=off
# For OpenAI API instead: WHISPER_MODE=api, WHISPER_API_KEY=sk-...
ports:
- "3000:3000"
volumes:
- "./cookies.txt:/cookies.txt"
restart: unless-stopped
transcriptor-mcp:
image: artsamsonov/transcriptor-mcp:latest
container_name: transcriptor-mcp
command: ["npm", "run", "start:mcp:http"]
stdin_open: true
tty: true
environment:
MCP_PORT: "4200"
MCP_HOST: "0.0.0.0"
YT_DLP_TIMEOUT: "60000"
SHUTDOWN_TIMEOUT: "60000"
YT_DLP_JS_RUNTIMES: "node"
COOKIES_FILE_PATH: "/cookies.txt"
# Optional: MCP_AUTH_TOKEN, MCP_ALLOWED_HOSTS, MCP_ALLOWED_ORIGINS, LOG_LEVEL, CACHE_* (see .env.example and docs/configuration.md)
# Optional: SENTRY_DSN, SENTRY_ENVIRONMENT, SENTRY_RELEASE (see docs/sentry.md)
# Whisper fallback (local container)
WHISPER_MODE: "local"
WHISPER_BASE_URL: "http://whisper:9000"
WHISPER_TIMEOUT: "600000"
# Optional: max time for background Whisper HTTP (default max(30m, 3×WHISPER_TIMEOUT)); "0" = no abort
# WHISPER_BACKGROUND_TIMEOUT: "3600000"
ports:
- "4200:4200"
volumes:
- "./cookies.txt:/cookies.txt"
restart: unless-stopped