fix(compose): duplicate networks block on api service; overridable NPM_REGISTRY build arg

This commit is contained in:
MMD
2026-09-19 00:11:24 +03:30
parent 8eddb74951
commit e03d94207b
+2 -4
View File
@@ -266,10 +266,6 @@ services:
- traefik.http.routers.api.entrypoints=web - traefik.http.routers.api.entrypoints=web
- traefik.http.services.api.loadbalancer.server.port=8000 - traefik.http.services.api.loadbalancer.server.port=8000
networks:
- traefik_network
- default
depends_on: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy
@@ -286,6 +282,8 @@ services:
# Developer Mode panel on the login page — dev-only aid. Production # Developer Mode panel on the login page — dev-only aid. Production
# builds MUST leave this false (identity comes from Casdoor tokens). # builds MUST leave this false (identity comes from Casdoor tokens).
DEV_LOGIN_ENABLED: ${DEV_LOGIN_ENABLED:-false} DEV_LOGIN_ENABLED: ${DEV_LOGIN_ENABLED:-false}
# Registry overridable for networks where npmmirror is unreachable.
NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmmirror.com}
# Observability (build-time baked; empty = disabled) # Observability (build-time baked; empty = disabled)
VITE_OPENPANEL_URL: ${OPENPANEL_PUBLIC_URL:-} VITE_OPENPANEL_URL: ${OPENPANEL_PUBLIC_URL:-}
VITE_OPENPANEL_CLIENT_ID: ${OPENPANEL_CLIENT_ID:-} VITE_OPENPANEL_CLIENT_ID: ${OPENPANEL_CLIENT_ID:-}