From 0eb7f008678c777a88f2a0e0630e87c93aff49fe Mon Sep 17 00:00:00 2001 From: LM20230311 Date: Mon, 16 Mar 2026 17:14:01 +0800 Subject: [PATCH] chore: add environment variables for backend API configuration in docker-compose-all.yaml --- docker-compose-all.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose-all.yaml b/docker-compose-all.yaml index b1dda41d..c0efaedb 100644 --- a/docker-compose-all.yaml +++ b/docker-compose-all.yaml @@ -133,6 +133,11 @@ services: restart: always ports: - "25666:5666" + environment: + # 后端 API 地址 - 运行时动态配置(无需重新构建镜像) + # 在完整 docker-compose 中应设置为: http://backend:6039 + # 独立运行时可设置为实际后端地址,如: 192.168.1.100:6039 + UPSTREAM_HOST: http://backend:6039 # 资源限制 - 防止 CPU 和内存耗尽 deploy: resources: @@ -154,6 +159,8 @@ services: restart: always ports: - "25137:5137" + environment: + UPSTREAM_URL: http://backend:6039 depends_on: - backend networks: