Merge pull request #4512 from okxlin/fix/simplex-addr-and-voicebox-cuda

Require explicit SimpleX addr and add Voicebox CUDA variant
This commit is contained in:
okxlin
2026-07-04 01:59:44 +08:00
committed by GitHub
15 changed files with 160 additions and 9 deletions
+1 -1
View File
@@ -2,6 +2,6 @@ PANEL_APP_PORT_HTTP=8000
PANEL_APP_PORT_SMP=5223
APP_CONFIG_DIR=./data/config
APP_STATE_DIR=./data/state
ADDR=127.0.0.1
ADDR=
PASS=
CONTAINER_NAME=
+1 -1
View File
@@ -66,7 +66,7 @@ additionalProperties:
pt-br: Diretório de Estado
required: true
type: text
- default: 127.0.0.1
- default: ''
edit: true
envKey: ADDR
labelEn: Server Domain or IP
+3 -2
View File
@@ -16,9 +16,9 @@ SimpleX SMP Server 是官方推荐的自托管 SimpleX 中继服务,提供 SMP
http://服务器IP:信息页端口
```
信息页端口用于查看服务器说明页;SimpleX 客户端实际连接请使用 `ADDR` 对应的公网域名或 IP 与 SMP 端口。
信息页端口用于查看服务器说明页;SimpleX 客户端实际连接请使用 `ADDR` 对应的公网域名或公网 IP 与 SMP 端口。
`ADDR` 默认值为 `127.0.0.1`,仅用于本地初始化与测试。正式使用前请改成你的公网域名或公网 IP。
安装时必须填写 `ADDR`,请直接填写你的公网域名或公网 IP。
## 数据持久化
- `APP_CONFIG_DIR`:持久化 `/etc/opt/simplex`,保存证书、指纹与 `smp-server.ini`
@@ -32,6 +32,7 @@ SimpleX SMP Server is the official self-hosted relay server for SimpleX. This ad
- Embedded HTTP server information page
- Auto-generated certificates, fingerprint, and `smp-server.ini`
- Optional password for creating new queues
- `ADDR` must be set to your public domain or public IP during installation
## 版本说明
固定版本使用官方镜像 `simplexchat/smp-server:v6.5.2`,`latest` 当前同样基于 6.5.x 发布线。
+1 -1
View File
@@ -2,6 +2,6 @@ PANEL_APP_PORT_HTTP=8000
PANEL_APP_PORT_SMP=5223
APP_CONFIG_DIR=./data/config
APP_STATE_DIR=./data/state
ADDR=127.0.0.1
ADDR=
PASS=
CONTAINER_NAME=
+1 -1
View File
@@ -66,7 +66,7 @@ additionalProperties:
pt-br: Diretório de Estado
required: true
type: text
- default: 127.0.0.1
- default: ''
edit: true
envKey: ADDR
labelEn: Server Domain or IP
+9 -1
View File
@@ -34,11 +34,19 @@ Voicebox is a local-first AI voice studio with web UI, REST API, voice cloning,
- OpenAPI docs at `/docs` and health endpoint at `/health`
## 版本说明
官方 GHCR 当前公开提供 `latest`、`dev`、`latest-cuda` 与 `dev-cuda` 标签,未发布可直接拉取的数字版稳定标签。本适配使用官方 `latest` 镜像。
官方 GHCR 当前公开提供 `latest`、`dev`、`latest-cuda` 与 `dev-cuda` 标签,未发布可直接拉取的数字版稳定标签。
本适配提供:
- `latest`:官方 CPU 通用镜像
- `latest-cuda`:官方 NVIDIA CUDA 镜像
`latest-cuda` 需要宿主机已安装 NVIDIA Container Toolkit,并且当前官方镜像仅发布 `linux/amd64`。
## 参考资料
- 官网: <https://voicebox.sh>
- 文档: <https://docs.voicebox.sh/>
- 源码: <https://github.com/jamiepine/voicebox>
- Compose: <https://github.com/jamiepine/voicebox/blob/main/docker-compose.yml>
- Docker 文档: <https://github.com/jamiepine/voicebox/blob/main/docs/content/docs/overview/docker.mdx>
- GPU 文档: <https://github.com/jamiepine/voicebox/blob/main/docs/content/docs/overview/gpu-acceleration.mdx>
- GHCR: <https://ghcr.io/jamiepine/voicebox>
+6
View File
@@ -0,0 +1,6 @@
PANEL_APP_PORT_HTTP=8000
APP_DATA_DIR=./data/app
APP_MODELS_DIR=./data/models
LOG_LEVEL=info
VOICEBOX_CORS_ORIGINS=
CONTAINER_NAME=
+83
View File
@@ -0,0 +1,83 @@
additionalProperties:
formFields:
- default: 8000
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Port
labelZh: Web 端口
label:
en: Web Port
zh: Web 端口
zh-Hant: Web 埠
ja: Web ポート
ko: Web 포트
ru: Веб-порт
ms: Port Web
pt-br: Porta Web
required: true
rule: paramPort
type: number
- default: ./data/app
edit: true
envKey: APP_DATA_DIR
labelEn: Data Directory
labelZh: 数据目录
label:
en: Data Directory
zh: 数据目录
zh-Hant: 資料目錄
ja: データディレクトリ
ko: 데이터 디렉터리
ru: Каталог данных
ms: Direktori Data
pt-br: Diretório de Dados
required: true
type: text
- default: ./data/models
edit: true
envKey: APP_MODELS_DIR
labelEn: Models Directory
labelZh: 模型目录
label:
en: Models Directory
zh: 模型目录
zh-Hant: 模型目錄
ja: モデルディレクトリ
ko: 모델 디렉터리
ru: Каталог моделей
ms: Direktori Model
pt-br: Diretório de Modelos
required: true
type: text
- default: info
edit: true
envKey: LOG_LEVEL
labelEn: Log Level
labelZh: 日志级别
label:
en: Log Level
zh: 日志级别
zh-Hant: 日誌等級
ja: ログレベル
ko: 로그 레벨
ru: Уровень логов
ms: Tahap Log
pt-br: Nivel de Log
required: true
type: text
- default: ''
edit: true
envKey: VOICEBOX_CORS_ORIGINS
labelEn: CORS Origins
labelZh: CORS 来源
label:
en: CORS Origins
zh: CORS 来源
zh-Hant: CORS 來源
ja: CORS オリジン
ko: CORS 출처
ru: Источники CORS
ms: Asal CORS
pt-br: Origens CORS
required: false
type: text
@@ -0,0 +1,35 @@
services:
voicebox:
image: "ghcr.io/jamiepine/voicebox:latest-cuda"
container_name: ${CONTAINER_NAME}
ports:
- "${PANEL_APP_PORT_HTTP}:8000"
environment:
- LOG_LEVEL=${LOG_LEVEL}
- NUMBA_CACHE_DIR=/tmp/numba_cache
- VOICEBOX_MODELS_DIR=/app/models
- VOICEBOX_CORS_ORIGINS=${VOICEBOX_CORS_ORIGINS}
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- "${APP_DATA_DIR}:/app/data"
- "${APP_MODELS_DIR}:/app/models"
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
healthcheck:
test:
- CMD
- python
- -c
- import urllib.request; urllib.request.urlopen("http://127.0.0.1:8000/health", timeout=10)
labels:
createdBy: Apps
networks:
- 1panel-network
restart: unless-stopped
networks:
1panel-network:
external: true
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
set -euo pipefail
DATA_DIR="${APP_DATA_DIR:-./data/app}"
MODELS_DIR="${APP_MODELS_DIR:-./data/models}"
mkdir -p "$DATA_DIR" "$MODELS_DIR"
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
set -euo pipefail
docker-compose down --volumes
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
set -euo pipefail
DATA_DIR="${APP_DATA_DIR:-./data/app}"
MODELS_DIR="${APP_MODELS_DIR:-./data/models}"
mkdir -p "$DATA_DIR" "$MODELS_DIR"
+4 -2
View File
@@ -1,6 +1,8 @@
{
"repository": "https://github.com/jamiepine/voicebox",
"dockerDocs": "https://github.com/jamiepine/voicebox#download",
"dockerDocs": "https://github.com/jamiepine/voicebox/blob/main/docs/content/docs/overview/docker.mdx",
"gpuDocs": "https://github.com/jamiepine/voicebox/blob/main/docs/content/docs/overview/gpu-acceleration.mdx",
"composeFile": "https://github.com/jamiepine/voicebox/blob/main/docker-compose.yml",
"image": "ghcr.io/jamiepine/voicebox:latest"
"image": "ghcr.io/jamiepine/voicebox:latest",
"cudaImage": "ghcr.io/jamiepine/voicebox:latest-cuda"
}