feat: add vmis-backend-test container config and fix test env route

- Add docker/vmis-test/ with separate .env (10.1.0.20:5433) and docker-compose
- Route YAML: is_active=False → vmis-backend-test, is_active=True → vmis-backend
- Test and production managers now use independent backend containers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
VMIS Developer
2026-03-15 23:48:26 +08:00
parent 164b8f7ca8
commit 47805b202f
2 changed files with 18 additions and 1 deletions

View File

@@ -201,6 +201,7 @@ def _generate_tenant_route_yaml(tenant, is_active: bool) -> str:
if tenant.is_manager:
# Manager 租戶:/admin → vmis-backend/api → vmis-backend根路徑 → NC Drive
vmis_backend_url = "http://vmis-backend:10281" if is_active else "http://vmis-backend-test:10281"
lines += [
" middlewares:",
" vmis-strip-admin:",
@@ -248,7 +249,7 @@ def _generate_tenant_route_yaml(tenant, is_active: bool) -> str:
f" {code}-vmis:",
" loadBalancer:",
" servers:",
' - url: "http://vmis-backend:10281"',
f' - url: "{vmis_backend_url}"',
]
else:
lines += [