feat: 添加 WEKNORA_VERSION 环境变量支持

允许通过环境变量统一控制所有服务的镜像版本标签,默认使用 latest
This commit is contained in:
wizardchen
2025-12-31 18:24:39 +08:00
committed by lyingbug
parent d72b6997cb
commit 5152f37195
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
services:
frontend:
image: wechatopenai/weknora-ui:latest
image: wechatopenai/weknora-ui:${WEKNORA_VERSION:-latest}
build:
context: ./frontend
args:
@@ -18,7 +18,7 @@ services:
restart: unless-stopped
app:
image: wechatopenai/weknora-app:latest
image: wechatopenai/weknora-app:${WEKNORA_VERSION:-latest}
build:
context: .
dockerfile: docker/Dockerfile.app
@@ -119,7 +119,7 @@ services:
- "host.docker.internal:host-gateway"
docreader:
image: wechatopenai/weknora-docreader:latest
image: wechatopenai/weknora-docreader:${WEKNORA_VERSION:-latest}
build:
context: .
dockerfile: docker/Dockerfile.docreader