From 5152f371959e12b558de74956f9ba63f4d95a881 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Wed, 31 Dec 2025 18:24:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20WEKNORA=5FVERSION?= =?UTF-8?q?=20=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 允许通过环境变量统一控制所有服务的镜像版本标签,默认使用 latest --- .env.example | 4 ++++ docker-compose.yml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 8980f9b3..855ee71f 100644 --- a/.env.example +++ b/.env.example @@ -3,6 +3,10 @@ # 2. 替换所有占位符为实际值 # 3. 确保 .env 文件不会被提交到版本控制系统 +# ========== 镜像版本 ========== +# WeKnora 镜像版本标签,可选值: latest(稳定版), main(最新开发版) +# WEKNORA_VERSION=latest + # gin mod # 可选值: debug(开发模式,有详细日志), release(生产模式,禁用Swagger文档) GIN_MODE=release diff --git a/docker-compose.yml b/docker-compose.yml index 4a16eb32..00a6d93e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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