Websockets setup for Docker

95 views
Skip to first unread message

Dan Davis

unread,
May 17, 2021, 3:49:43 PM5/17/21
to vernemq-users
What is the best way to enable web sockets using docker?  I tried this, but it didn't seem to work:

sudo docker run -p 1883:1883 -p 4369:4369 -p 8080:8080 -p8883:8883 -p8888:8888 -p 9100-9109:9100-9109 -p 44053:44053 -e DOCKER_VERNEMQ_ACCEPT_EULA=yes -e "DOCKER_VERNEMQ_ALLOW_ANONYMOUS=on" --restart unless-stopped -e "DOCKER_VERNEMQ_LISTENER_WS_DEFAULT=127.0.0.1:8080" --name vernemq1 -d vernemq/vernemq

I tried following the pattern used for allow anonymous and was hoping there was a similar environment variable I could use to enable ws.

Thanks!

André Fatton

unread,
May 18, 2021, 9:18:28 AM5/18/21
to vernemq-users
Hi,
I found this issue: https://github.com/vernemq/docker-vernemq/issues/107 which might help you.
Best,
André
Reply all
Reply to author
Forward
0 new messages