-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
137 lines (132 loc) · 4.2 KB
/
docker-compose.yml
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
version: '3.8'
services:
subtitle-processor:
build: # 直接运行、不构建的时候,注释掉
context: .
image: subtitle-processor:latest
container_name: subtitle-processor
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
ports:
- "5000:5000"
- "5001:5900" # VNC 服务端口
volumes:
# - /share/homes/hsk/subtitle-processor/uploads:/app/uploads
# - /share/homes/hsk/subtitle-processor/videos:/app/videos
# - /share/homes/hsk/subtitle-processor/outputs:/app/outputs
# - /share/homes/hsk/subtitle-processor/config:/app/config
# - /share/homes/hsk/subtitle-processor/models:/app/models
# - /share/homes/hsk/subtitle-processor/firefox_profile:/root/.mozilla/firefox # Firefox 配置目录
- ./uploads:/app/uploads
- ./videos:/app/videos
- ./outputs:/app/outputs
- ./config:/app/config
- ./models:/app/models
- ./firefox_profile:/root/.mozilla/firefox # Firefox 配置目录
environment:
- TZ=Asia/Shanghai
- FLASK_APP=app.py
- FLASK_ENV=development
# 只对外部请求使用代理
# - NO_PROXY=transcribe-audio,localhost,127.0.0.1
# - ALL_PROXY=http://host.docker.internal:20172
# - HTTP_PROXY=http://host.docker.internal:20172
# - HTTPS_PROXY=http://host.docker.internal:20172
# 从配置文件读取所有配置
- CONFIG_PATH=/app/config/config.yml
networks:
- srt-network
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- deeplx
transcribe-audio:
build: # 直接运行、不构建的时候,注释掉
context: ./transcribe-audio
dockerfile: Dockerfile
image: transcribe-audio:latest
container_name: transcribe-audio
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
ports:
- "10095:10095"
volumes:
# - /share/homes/hsk/subtitle-processor/uploads:/app/uploads
# - /share/homes/hsk/subtitle-processor/videos:/app/videos
# - /share/homes/hsk/subtitle-processor/models:/app/models
# - /share/homes/hsk/subtitle-processor/outputs:/app/outputs
# - /share/homes/hsk/subtitle-processor/config:/app/config
- ./uploads:/app/uploads
- ./videos:/app/videos
- ./models:/app/models
- ./outputs:/app/outputs
- ./config:/app/config
environment:
- TZ=Asia/Shanghai
- FLASK_APP=app.py
- FLASK_ENV=development
- MODEL_DIR=/app/models
- MODELSCOPE_CACHE=/app/models
- HF_HOME=/app/models
- TORCH_HOME=/app/models
- FUNASR_MODEL=paraformer-zh
- FUNASR_VAD_MODEL=fsmn-vad
- FUNASR_PUNC_MODEL=ct-punc
- FUNASR_SPK_MODEL=cam++
# 从配置文件读取所有配置
- CONFIG_PATH=/app/config/config.yml
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
networks:
- srt-network
deeplx:
image: ghcr.io/owo-network/deeplx:latest
container_name: deeplx
restart: unless-stopped
ports:
- "1188:1188"
networks:
- srt-network
telegram-bot:
build: # 直接运行、不构建的时候,注释掉
context: ./telegram-bot
dockerfile: Dockerfile
image: telegram-bot:latest
container_name: telegram-bot
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
- SUBTITLE_PROCESSOR_URL=http://subtitle-processor:5000
# - NO_PROXY=subtitle-processor,localhost,127.0.0.1
# - ALL_PROXY=http://host.docker.internal:20172
# - HTTP_PROXY=http://host.docker.internal:20172
# - HTTPS_PROXY=http://host.docker.internal:20172
# 从配置文件读取所有配置
- CONFIG_PATH=/app/config/config.yml
volumes:
- ./config:/app/config
# - /share/homes/hsk/subtitle-processor/config:/app/config
networks:
- srt-network
depends_on:
- subtitle-processor
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
srt-network:
driver: bridge