`make dev-docker` doesn't forward `http://localhost:8080` to the frontend service
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- docker, javascript, vite
Research direction
Start with the make init-dev-docker and make dev-docker targets, then inspect the frontend service that runs yarn dev and its Vite configuration. Verify how Vite binds inside Docker and adjust the configuration or command so the service is reachable at http://localhost:8080 from the host. Confirm that curl http://localhost:8080 succeeds after the development container starts.
Written by the indexing model from the issue text.
Description
(This might be specific to macOS, which runs Docker in a VM. I'm on macOS 26.5.1.)
make init-dev-docker
make dev-docker
Then curl http://localhost:8080; it'll fail, "curl: (56) Recv failure: Connection reset by peer".
Inside the frontend service, we're running yarn dev which runs vite, which binds to http://localhost:8080, but to forward the port from Docker, we need to run vite --host or host: true in Vite configuration, causing it to bind to 0.0.0.0:8080, allowing Docker to forward the port to the host.
- Dominant language
- Go
- Stars
- 23.5k
- Forks
- 2.6k
- Avg merge
- 9d 5h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from knadh/listmonk
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100