Skip to content

fix: map devcontainer port 4242 to host 51888#34

Open
aniongithub wants to merge 2 commits into
mainfrom
fix/devcontainer-port-mapping
Open

fix: map devcontainer port 4242 to host 51888#34
aniongithub wants to merge 2 commits into
mainfrom
fix/devcontainer-port-mapping

Conversation

@aniongithub
Copy link
Copy Markdown
Owner

Let mind-map use its default port (4242) inside the devcontainer. Docker maps container:4242 → host:51888, so the dev server never conflicts with the production service on host port 4242.

  • MIND_MAP_PORT=4242 (matches the binary's default)
  • appPort: ["51888:4242"] (Docker port mapping)
  • onAutoForward: "ignore" (prevents VS Code from also forwarding 4242)

Let mind-map use its default port (4242) inside the container.
Docker maps it to 51888 on the host, avoiding conflict with the
production mind-map service on host port 4242.

Set onAutoForward to ignore so VS Code doesn't also forward 4242.
mind-map uses its default port (4242) inside the container.
Docker maps it to host 51888. No env var indirection needed.

Cleaned up: devcontainer.json, launch.json, tasks.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant