fix(web): update proxy target for containerized development (#334)

* fix(web): update proxy target for containerized development

Use internal Docker network target (http://server:8080) instead of host-published
ports (host.docker.internal) to improve containerized dev environment reliability.
Also add mise.local.toml to .gitignore for local tool configuration.

* Remove comments regarding Docker network configuration

Removed comments about containerized development and proxy target.

---------

Co-authored-by: 晨苒 <16112591+chen-ran@users.noreply.github.com>
This commit is contained in:
L-Ryland
2026-04-08 01:34:19 +08:00
committed by GitHub
parent 8c4e9e218e
commit af97ab22ee
2 changed files with 2 additions and 3 deletions
+1
View File
@@ -63,6 +63,7 @@ lerna-debug.log*
.env.development.local .env.development.local
.env.test.local .env.test.local
.env.production.local .env.production.local
mise.local.toml
# IDE # IDE
.idea/ .idea/
+1 -3
View File
@@ -117,9 +117,7 @@ services:
command: ["pnpm", "exec", "vite", "--host", "0.0.0.0", "--port", "8082"] command: ["pnpm", "exec", "vite", "--host", "0.0.0.0", "--port", "8082"]
environment: environment:
MEMOH_CONFIG_PATH: /workspace/devenv/app.dev.toml MEMOH_CONFIG_PATH: /workspace/devenv/app.dev.toml
MEMOH_WEB_PROXY_TARGET: http://host.docker.internal:18080 MEMOH_WEB_PROXY_TARGET: http://server:8080
extra_hosts:
- "host.docker.internal:host-gateway"
volumes: volumes:
- ..:/workspace - ..:/workspace
- node_modules:/workspace/node_modules - node_modules:/workspace/node_modules