Skip to content

fix(devcontainer): expose UI/API ports for host access#405

Open
faisu wants to merge 1 commit into
dograh-hq:mainfrom
faisu:fix/devcontainer-port-forwarding
Open

fix(devcontainer): expose UI/API ports for host access#405
faisu wants to merge 1 commit into
dograh-hq:mainfrom
faisu:fix/devcontainer-port-forwarding

Conversation

@faisu

@faisu faisu commented Jun 2, 2026

Copy link
Copy Markdown

Summary

Fixes host access to the Dograh UI and API in the devcontainer. Services bind correctly inside the container, but localhost:3000 / :8000 on the Mac were unreachable without manual port forwarding.

Fixes #404

Changes

  • Publish ports 3000 and 8000 on the workspace service in .devcontainer/docker-compose.yml
  • (Optional) Document host access in contributor setup docs

Why

Setup docs tell contributors to open http://localhost:3000, but devcontainer.json only auto-forwards infra ports and sets onAutoForward: ignore for 3000/8000. See #1234.

Test plan

  • Rebuild devcontainer after compose change
  • bash scripts/start_services_dev.sh succeeds (migrations + API up)
  • cd ui && npm run dev -- --hostname 0.0.0.0
  • Host: curl http://localhost:8000/api/v1/health returns OK
  • Host browser: http://localhost:3000 loads

@github-actions github-actions Bot added the fix Bug fix (changelog: Bug Fixes) label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix (changelog: Bug Fixes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Devcontainer auto-forward

1 participant