yjs / y-websocket

Websocket Connector for Yjs
https://docs.yjs.dev/ecosystem/connection-provider/y-websocket
MIT License
523 stars 261 forks source link

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

Open sdzhu opened 2 years ago

sdzhu commented 2 years ago

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.