mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-14 20:33:40 +00:00
chore: add environment variables for backend API configuration in docker-compose-all.yaml
This commit is contained in:
@@ -133,6 +133,11 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "25666:5666"
|
- "25666:5666"
|
||||||
|
environment:
|
||||||
|
# 后端 API 地址 - 运行时动态配置(无需重新构建镜像)
|
||||||
|
# 在完整 docker-compose 中应设置为: http://backend:6039
|
||||||
|
# 独立运行时可设置为实际后端地址,如: 192.168.1.100:6039
|
||||||
|
UPSTREAM_HOST: http://backend:6039
|
||||||
# 资源限制 - 防止 CPU 和内存耗尽
|
# 资源限制 - 防止 CPU 和内存耗尽
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
@@ -154,6 +159,8 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "25137:5137"
|
- "25137:5137"
|
||||||
|
environment:
|
||||||
|
UPSTREAM_URL: http://backend:6039
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user