47 lines
1.7 KiB
Diff
47 lines
1.7 KiB
Diff
From 3ff6c9dd3eea70cbf5722cc50b490f9520359dac Mon Sep 17 00:00:00 2001
|
|
From: HenryDu8133 <813367384@qq.com>
|
|
Date: Sun, 6 Sep 2026 09:44:58 +0800
|
|
Subject: [PATCH 08/58] =?UTF-8?q?fix:=20docker-compose=20=E9=A1=B6?=
|
|
=?UTF-8?q?=E7=BA=A7=20name=20=E5=B0=8F=E5=86=99=E5=90=88=E6=B3=95=20+=20.?=
|
|
=?UTF-8?q?env.example=20=E8=A1=A5=E5=85=85=20REDIS=5FPASSWORD?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
---
|
|
.env.example | 5 +++++
|
|
docker-compose.yml | 4 +++-
|
|
2 files changed, 8 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/.env.example b/.env.example
|
|
index b85a6e2..8ea85f4 100644
|
|
--- a/.env.example
|
|
+++ b/.env.example
|
|
@@ -72,6 +72,11 @@ NODE_ENV=development
|
|
# 格式:redis://用户名:密码@主机:端口
|
|
# REDIS_URL="redis://default:password@host:port"
|
|
|
|
+# Docker Compose 自带的 Redis 容器(compose 自带 redis 服务,仅在启用自带 redis 时用)
|
|
+# - 留空(或空字符串):不设置 Redis 密码,内网部署常用(默认)
|
|
+# - 填写强密码:Redis 会启用 requirepass,连接时 REDIS_URL 里也要带上相同密码
|
|
+REDIS_PASSWORD=
|
|
+
|
|
# Redis 键命名空间,多个 VoiceHub 环境共用 Redis 时应分别设置
|
|
# REDIS_KEY_PREFIX="voicehub:v2:"
|
|
|
|
diff --git a/docker-compose.yml b/docker-compose.yml
|
|
index 3eb9540..de070a1 100644
|
|
--- a/docker-compose.yml
|
|
+++ b/docker-compose.yml
|
|
@@ -1,4 +1,6 @@
|
|
-name: BYW VoiceHub (1.7.0.0)
|
|
+# ⚠️ Docker Compose v2 顶级 name 必须匹配正则 ^[a-z0-9][a-z0-9_-]*$
|
|
+# 不能有大写、空格、括号、中文,否则会报 name Does not match pattern 错误
|
|
+name: byw-voicehub
|
|
services:
|
|
# ========================================================================
|
|
# 应用本体 - Nuxt 4 (Node SSR)
|
|
--
|
|
2.45.1.windows.1
|
|
|