-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (69 loc) · 1.74 KB
/
docker-compose.yml
File metadata and controls
75 lines (69 loc) · 1.74 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
version: '3.8'
services:
# Development environment with hot reload
whisper-dev:
build:
context: .
target: builder
volumes:
- .:/app
- /app/node_modules
- whisper-cache:/app/.whisper-cache
environment:
- NODE_ENV=development
- WHISPER_DEBUG=true
working_dir: /app
command: ["node", "bin/whisper", "--help"]
profiles: ["dev"]
# Production Node.js runtime
whisper-node:
build:
context: .
target: runtime
volumes:
- whisper-data:/app/data
- ./workspace:/workspace
environment:
- NODE_ENV=production
- WHISPER_DATA_DIR=/app/data
working_dir: /workspace
profiles: ["node", "production"]
# Python-compatible runtime
whisper-python:
build:
context: .
target: python-runtime
volumes:
- whisper-data:/app/data
- ./workspace:/workspace
environment:
- PYTHONPATH=/opt/whisper-python
- WHISPER_DATA_DIR=/app/data
working_dir: /workspace
profiles: ["python", "production"]
# Web UI (future enhancement)
whisper-web:
build:
context: .
target: runtime
ports:
- "3000:3000"
volumes:
- whisper-data:/app/data
- ./workspace:/workspace
environment:
- NODE_ENV=production
- WHISPER_WEB_MODE=true
- WHISPER_DATA_DIR=/app/data
command: ["node", "lib/server/web.js"]
profiles: ["web"]
volumes:
whisper-data:
driver: local
whisper-cache:
driver: local
# Usage examples:
# Development: docker-compose --profile dev up whisper-dev
# Node.js Production: docker-compose --profile node up whisper-node
# Python Production: docker-compose --profile python up whisper-python
# Web UI: docker-compose --profile web up whisper-web