`make dev-docker` doesn't forward `http://localhost:8080` to the frontend service

Open Beginner friendly
#3,100 0 comments 0 reactions 0 assignees View on GitHub

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
Domain
devops, frontend

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from knadh/listmonk

All issues in knadh/listmonk

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.