Aws ec2 jitsi meet installation using docker

I followed Self-Hosting Guide - Docker · Jitsi Meet Handbook.
opened all the required ports on the firewall.
I can see the host page and the microphone permission window.
But when i try to create a room, i get the below error.
“You Have been disconnected”

---------------- Additional Error ---------------------------
strophe.umd.js:5463 WebSocket connection to ‘wss://localhost:8443/xmpp-websocket?room=test’ failed:
_connect @ strophe.umd.js:5463
connect @ strophe.umd.js:2368
_interceptConnectArgs @
connect @ XmppConnection.js:251
_connect @ xmpp.js:516
connect @ xmpp.js:625
c.connect @ JitsiConnection.js:61
e @ app.bundle.min.js?v=5056:sourcemap:150
(anonymous) @ app.bundle.min.js?v=5056:sourcemap:150