web: 管理画面のポートを3001に変更

- composeのwebを --port 3001 で起動し、ホスト側も3001に公開
- APIのCORS許可オリジン(WEB_ORIGIN)とconfig.tsのデフォルトを3001に追従
This commit is contained in:
amania-jailbreak
2026-08-05 13:33:44 +09:00
parent 7432a9af05
commit 7de6c3075e
4 changed files with 7 additions and 8 deletions
+4 -5
View File
@@ -77,7 +77,7 @@ services:
AUTH_MODE: ${AUTH_MODE:-demo}
PROCESS_INLINE: "false"
PUBLIC_BASE_URL: ${PUBLIC_BASE_URL:-http://localhost:4000}
WEB_ORIGIN: ${WEB_ORIGIN:-http://localhost:3000}
WEB_ORIGIN: ${WEB_ORIGIN:-http://localhost:3001}
ports:
- "4000:4000"
depends_on:
@@ -108,14 +108,13 @@ services:
web:
<<: *altdock-app
# vinext uses --hostname (not vite's --host) to bind the dev server.
command: npm run dev -- --hostname 0.0.0.0
# vinext uses --hostname/--port (not vite's --host) to bind the dev server.
command: npm run dev -- --hostname 0.0.0.0 --port 3001
environment:
HOST: 0.0.0.0
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL:-http://localhost:4000}
NEXT_PUBLIC_AUTH_MODE: ${AUTH_MODE:-demo}
ports:
- "3000:3000"
- "3001:3001"
depends_on:
api:
condition: service_started