fix: rename management center containers to {realm}[-test] convention

- docker/vmis: container_name vmis-backend → vmis
- docker/vmis-test: container_name vmis-backend-test → vmis-admin-test
- route YAML: vmis_backend_url uses realm dynamically (http://{realm}:10281)

All containers now follow consistent naming: nc-{realm}, oo-{realm}, {realm}

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
VMIS Developer
2026-03-16 00:43:16 +08:00
parent 47805b202f
commit cbfdd0e734
3 changed files with 6 additions and 5 deletions

View File

@@ -201,7 +201,8 @@ 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"
realm = tenant.keycloak_realm or tenant.code
vmis_backend_url = f"http://{realm}:10281" if is_active else f"http://{realm}-test:10281"
lines += [
" middlewares:",
" vmis-strip-admin:",