Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not visit the server in docker by the Dockerfile. #123

Open
sdzhu opened this issue Oct 19, 2022 · 0 comments
Open

Can not visit the server in docker by the Dockerfile. #123

sdzhu opened this issue Oct 19, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sdzhu
Copy link

sdzhu commented Oct 19, 2022

I must set ENV HOST=0.0.0.0 in Dockerfile.
Or run -it --rm -p 1234:1234 -e HOST=0.0.0.0 --name y-websocket y-websocket.
Node server can not be visitied if this host is localhost or 127.0.0.1 in docker.
I suggest add this line "ENV HOST=0.0.0.0" in the dockerfile of the repository.

@sdzhu sdzhu added the bug Something isn't working label Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants