forked from pluja/whishper
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
102 lines (97 loc) · 2.76 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
102 lines (97 loc) · 2.76 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
# Whishper Reloaded - development stack.
#
# Builds every component from source instead of pulling the published images,
# so you can iterate on the code locally.
# Requires two env files next to this file: .backend.env and .frontend.env
# (see README.md -> "Environment files").
#
# docker compose -f docker-compose.dev.yml up -d --build
services:
whishper-mongo:
image: mongo:latest
container_name: whishper-mongo
restart: unless-stopped
env_file:
- .backend.env
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USER:-whishper}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASS:-whishper}
volumes:
- ./whishper_data/db_data/db:/data/db
- ./whishper_data/db_data/logs/:/var/log/mongodb/
expose:
- 27017
command: mongod --logpath /var/log/mongodb/mongod.log
translate:
image: libretranslate/libretranslate:latest
container_name: whishper-libretranslate
restart: unless-stopped
env_file:
- .backend.env
tty: true
environment:
LT_DISABLE_WEB_UI: "true"
LT_UPDATE_MODELS: "true"
LT_LOAD_ONLY: ${LT_LOAD_ONLY:-en,es,fr}
volumes:
- ./whishper_data/libretranslate/data:/home/libretranslate/.local/share
- ./whishper_data/libretranslate/cache:/home/libretranslate/.local/cache
ports:
- 5000:5000
expose:
- 5000
whishper-api:
build:
context: ./transcription-api
dockerfile: Dockerfile.cpu
container_name: whishper-api
restart: unless-stopped
env_file:
- .backend.env
environment:
UPLOAD_DIR: /uploads
WHISPER_MODELS_DIR: /app/models
WHISPER_MODELS: ${WHISPER_MODELS:-tiny,small}
CPU_THREADS: ${CPU_THREADS:-4}
volumes:
- ./whishper_data/uploads:/uploads
- ./whishper_data/models:/app/models
expose:
- 8000
whishper-backend:
build:
context: ./backend
container_name: whishper-backend
restart: unless-stopped
ports:
- 8080:8080
env_file:
- .backend.env
environment:
UPLOAD_DIR: /uploads
ASR_ENDPOINT: whishper-api:8000
TRANSLATION_ENDPOINT: translate:5000
DB_ENDPOINT: whishper-mongo:27017
volumes:
- ./whishper_data/uploads:/uploads
- ./whishper_data/logs:/var/log/whishper
depends_on:
- whishper-mongo
- translate
- whishper-api
whishper-frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: whishper-frontend
restart: unless-stopped
ports:
- "3000:3000"
expose:
- 3000
env_file:
- .frontend.env
volumes:
- ./whishper_data/frontend/logs:/var/log/whishper
depends_on:
- whishper-backend