Skip to content

fix: map devcontainer port 4242 to host 51888#34

Merged
aniongithub merged 2 commits into
mainfrom
fix/devcontainer-port-mapping
May 17, 2026
Merged

fix: map devcontainer port 4242 to host 51888#34
aniongithub merged 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
@aniongithub aniongithub merged commit 9c59111 into main May 17, 2026
1 check passed
@aniongithub aniongithub deleted the fix/devcontainer-port-mapping branch May 17, 2026 17:29
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