-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-cuda.yml
More file actions
94 lines (90 loc) · 3.05 KB
/
docker-compose-cuda.yml
File metadata and controls
94 lines (90 loc) · 3.05 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
services:
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- 6379:6379
volumes:
- ./redisFiles/data:/data
- ./redisFiles/redis.conf:/usr/local/etc/redis/redis.conf
# - ./redisFiles/logs:/logs
#配置文件启动
command: redis-server /usr/local/etc/redis/redis.conf
faster-whisper-server-cuda:
image: fedirz/faster-whisper-server:latest-cuda
restart: unless-stopped
ports:
- 8000:8000
environment:
- WHISPER__TTL=-1
- WHISPER__NUM_WORKERS=10
- WHISPER__CPU_THREADS=40
# environment params in:https://github.com/speaches-ai/speaches/blob/v0.5.0/src/faster_whisper_server/config.py
deploy:
resources:
reservations:
devices:
- count: all
driver: nvidia
capabilities: [gpu]
libretranslate-cuda:
image: libretranslate/libretranslate:latest
restart: unless-stopped
ports:
- 5000:5000
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
# volumes:
# Keep the models in a docker volume, to avoid re-downloading on startup
# - lt-local:/home/libretranslate/.local:rw
## Uncomment above command and define your args if necessary
# command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500
## Uncomment this section and the libretranslate_api_keys volume if you want to backup your API keys
environment:
- LT_THREADS=20
# - LT_API_KEYS=true
# - LT_API_KEYS_DB_PATH=/app/db/api_keys.db # Same result as `db/api_keys.db` or `./db/api_keys.db`
## Uncomment these vars and libretranslate_models volume to optimize loading time.
# - LT_UPDATE_MODELS=true
# - LT_LOAD_ONLY=en,fr
# volumes:
# - libretranslate_api_keys:/app/db
VoiceLinkVR-server:
image: boyqiu0010/voice-link-vr-server:latest
restart: unless-stopped
ports:
- 8980:8980
volumes:
- voice-link-vr-server-local:/usr/src/app/data:rw
environment:
- WHISPER_HOST=faster-whisper-server-cuda
- WHISPER_PORT=8000
- LIBRETRANSLATE_HOST=libretranslate-cuda
- LIBRETRANSLATE_PORT=5000
- FILTER_WEB_URL=https://gitee.com/voice-link-vr/VoiceLinkServer/raw/main/src/filter.json
- THREADS_NUM=50
- LIMIT_ENABLE=True
- LIMIT_PUBLIC_TEST_USER=testuser
- SQLALCHEMY_POOL_SIZE=0
- TRANSLATOR_SERVICES_LIST=bing,modernMt,cloudTranslation,caiyun,alibaba,youdao
- LIMITER_REDIS_URL=redis://redis:6379/0
- TTS_TOKEN=
- TTS_URL=
- ENABLE_WEB_TRANSLATORS=True
- LATEST_VERSION=v0.6.0-fix1
- PACKAGE_BASE_URL=https://cloudflarestorage.boyqiu001.top/VRCLS-windows-
- PACKAGE_TYPE=.exe
# 可以使用mysql
# - SQL_PATH=mysql+pymysql://voicelinkvr:voicelinkabc123%40@192.168.2.198:3306/voicelinkvr_server_test?charset=utf8
depends_on:
- libretranslate-cuda
- faster-whisper-server-cuda
- redis
volumes:
voice-link-vr-server-local: