diff --git a/frontend/admin-web/Dockerfile b/frontend/admin-web/Dockerfile index 2bdeff6e..ea885a4c 100644 --- a/frontend/admin-web/Dockerfile +++ b/frontend/admin-web/Dockerfile @@ -22,7 +22,7 @@ ENV NEXT_TELEMETRY_DISABLED=1 ENV NODE_ENV=production # Next.js rewrite 在 build 时计算, 需要通过 ARG 传入后端服务地址 -ARG SNAPSHOT_SERVICE_URL=http://snapshot-service:3099 +ARG SNAPSHOT_SERVICE_URL=https://rwaapi.szaiai.com/snapshot-api ENV SNAPSHOT_SERVICE_URL=$SNAPSHOT_SERVICE_URL # 构建应用 diff --git a/frontend/admin-web/docker-compose.yml b/frontend/admin-web/docker-compose.yml index 63d87f1f..c951fc31 100644 --- a/frontend/admin-web/docker-compose.yml +++ b/frontend/admin-web/docker-compose.yml @@ -3,6 +3,8 @@ services: build: context: . dockerfile: Dockerfile + args: + SNAPSHOT_SERVICE_URL: https://rwaapi.szaiai.com/snapshot-api image: rwadurian-admin-web:latest container_name: rwadurian-admin-web restart: unless-stopped