feat: align with upstream 1.5.9.9

This commit is contained in:
2026-09-12 18:21:11 +08:00
commit 34f0679117
805 changed files with 376275 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
## Docker Compose 配置文件说明
### 配置矩阵
根据镜像构建方式与缓存依赖需求,配置文件分类如下:
| 部署场景 \ 镜像来源 | GitHub 官方(南京大学镜像加速) | 本地构建 | GitHub 官方预构建 |
| :--------------------: | :--------------------------------------------------------------------------------------------: | :------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------: |
| **标准版(无 Redis)** | [docker-compose-prebuild-nju.yml](/docker-compose/docker-compose-prebuild-nju.yml) | [docker-compose.yml](/docker-compose/docker-compose.yml) | [docker-compose-prebuild-github.yml](/docker-compose/docker-compose-prebuild-github.yml) |
| **含 Redis(不推荐)** | [docker-compose-prebuild-nju-redis.yml](/docker-compose/docker-compose-prebuild-nju-redis.yml) | [docker-compose-redis.yml](/docker-compose/docker-compose-redis.yml) | [docker-compose-prebuild-github-redis.yml](/docker-compose/docker-compose-prebuild-github-redis.yml) |
### 版本选择建议
VoiceHub 提供三类主要部署方案,请根据实际环境选择:
**1. 国内个人用户(推荐)**
建议优先选用 `docker-compose-prebuild-nju.yml`。该配置使用南京大学镜像站加速拉取,可有效改善国内网络环境下的镜像下载体验。
**2. 企业/云服务器部署**
若您使用国外云服务商,建议选用 `docker-compose-prebuild-github.yml`,直接拉取 GitHub 官方预构建镜像。
**3. 自定义构建需求**
如需修改源码、调整依赖或适配私有网络环境,请选用 `docker-compose.yml` 并在本地执行镜像构建。您可根据需要修改 `Dockerfile` 以适配国内软件源等特定环境。特别地,请注意相对路径问题,您可以选择项目根目录下的 `docker-compose.yml` 文件而非此处的以避免。
### ⚠️ 关于 Redis 版本的特别提示
当前 Redis 版本存在稳定性问题,**强烈建议避免使用**。如确有缓存需求,请等待 Voicehub 发布更新版本。
@@ -0,0 +1,46 @@
services:
voicehub:
image: ghcr.io/laoshuikaixue/voicehub:latest
ports:
- '3000:3000'
environment:
- DATABASE_URL=postgresql://user:password@postgres:5432/voicehub?sslmode=disable
- REDIS_URL=redis://default:your-redis-password-here@redis:6379
- JWT_SECRET=your-jwt-secret-here
- NODE_ENV=production
- SKIP_BUILD=true
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: ghcr.io/laoshuikaixue/voicehub-postgres:latest
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=voicehub
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U user -d voicehub']
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
redis:
image: redis:7-alpine
command: >
redis-server
--requirepass your-redis-password-here
--appendonly yes
volumes:
- redis_data:/data
ports:
- '6379:6379'
restart: unless-stopped
volumes:
postgres_data:
redis_data:
@@ -0,0 +1,32 @@
services:
voicehub:
image: ghcr.io/laoshuikaixue/voicehub:latest
ports:
- '3000:3000'
environment:
- DATABASE_URL=postgresql://user:password@postgres:5432/voicehub?sslmode=disable
- JWT_SECRET=your-jwt-secret-here
- NODE_ENV=production
- SKIP_BUILD=true
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: ghcr.io/laoshuikaixue/voicehub-postgres:latest
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=voicehub
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U user -d voicehub']
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_data:
@@ -0,0 +1,44 @@
services:
voicehub:
image: ghcr.nju.edu.cn/laoshuikaixue/voicehub:latest
ports:
- '3000:3000'
environment:
- DATABASE_URL=postgresql://user:password@postgres:5432/voicehub?sslmode=disable
- REDIS_URL=redis://default:your-redis-password-here@redis:6379
- JWT_SECRET=your-jwt-secret-here
- NODE_ENV=production
- SKIP_BUILD=true
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: ghcr.nju.edu.cn/laoshuikaixue/voicehub-postgres:latest
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=voicehub
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U user -d voicehub']
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
redis:
image: redis:7-alpine
command: >
redis-server
--requirepass your-redis-password-here
--appendonly yes
volumes:
- redis_data:/data
restart: unless-stopped
volumes:
postgres_data:
redis_data:
@@ -0,0 +1,32 @@
services:
voicehub:
image: ghcr.nju.edu.cn/laoshuikaixue/voicehub:latest
ports:
- '3000:3000'
environment:
- DATABASE_URL=postgresql://user:password@postgres:5432/voicehub?sslmode=disable
- JWT_SECRET=your-jwt-secret-here
- NODE_ENV=production
- SKIP_BUILD=true
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: ghcr.nju.edu.cn/laoshuikaixue/voicehub-postgres:latest
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=voicehub
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U user -d voicehub']
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_data:
+48
View File
@@ -0,0 +1,48 @@
services:
voicehub:
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000'
environment:
- DATABASE_URL=postgresql://user:password@postgres:5432/voicehub?sslmode=disable
- REDIS_URL=redis://default:your-redis-password-here@redis:6379
- JWT_SECRET=your-jwt-secret-here
- NODE_ENV=production
- SKIP_BUILD=true
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
build:
context: .
dockerfile: Dockerfile-postgres
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=voicehub
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U user -d voicehub']
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
redis:
image: redis:7-alpine
command: >
redis-server
--requirepass your-redis-password-here
--appendonly yes
volumes:
- redis_data:/data
restart: unless-stopped
volumes:
postgres_data:
redis_data:
+36
View File
@@ -0,0 +1,36 @@
services:
voicehub:
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000'
environment:
- DATABASE_URL=postgresql://user:password@postgres:5432/voicehub?sslmode=disable
- JWT_SECRET=your-jwt-secret-here
- NODE_ENV=production
- SKIP_BUILD=true
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
build:
context: .
dockerfile: Dockerfile-postgres
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=voicehub
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U user -d voicehub']
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_data: