From e03d94207b4bfd6771ed1f7e783049707fda0308 Mon Sep 17 00:00:00 2001 From: MMD Date: Sat, 19 Sep 2026 00:11:24 +0330 Subject: [PATCH] fix(compose): duplicate networks block on api service; overridable NPM_REGISTRY build arg --- docker-compose.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 750f071..9dd4694 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -266,10 +266,6 @@ services: - traefik.http.routers.api.entrypoints=web - traefik.http.services.api.loadbalancer.server.port=8000 - networks: - - traefik_network - - default - depends_on: postgres: condition: service_healthy @@ -286,6 +282,8 @@ services: # Developer Mode panel on the login page — dev-only aid. Production # builds MUST leave this false (identity comes from Casdoor tokens). 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) VITE_OPENPANEL_URL: ${OPENPANEL_PUBLIC_URL:-} VITE_OPENPANEL_CLIENT_ID: ${OPENPANEL_CLIENT_ID:-}