-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.23 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
# ============================================
# ViNote Docker Compose 部署配置
# ============================================
# 使用方法:
# 1. 复制 .env.example 为 .env 并填写配置
# 2. docker compose up -d
# 3. 访问 http://localhost:8999
# ============================================
services:
vinote:
build:
context: .
dockerfile: Dockerfile
args:
ASR_PROVIDER: ${ASR_PROVIDER:-whisper}
image: vinote:latest
container_name: vinote
restart: unless-stopped
ports:
- "${APP_BIND_HOST:-127.0.0.1}:${APP_PORT:-8999}:8999"
env_file:
- .env
environment:
- PYTHONUNBUFFERED=1
volumes:
# 持久化临时文件(下载的音频、转录结果等)
- vinote-temp:/app/temp
# 持久化应用数据(任务记录等)
- vinote-data:/app/data
# 可选:挂载 B站 cookies 文件(启用前请先创建 bilibili_cookies.txt)
# - ./bilibili_cookies.txt:/app/bilibili_cookies.txt:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8999/health"]
interval: 30s
timeout: 10s
start_period: 15s
retries: 3
volumes:
vinote-temp:
driver: local
vinote-data:
driver: local