Docker and DDP
Opened this issue · 3 comments
Hello there !
Hello I am accessing to a meteor container from a J2EE container and it fails because there are some trouble at the connection with the server name (corresponding to "meteor" in my compose file) and the port "82".
In this case it doesn't take into account the port and it replaces it with 80.... so the connection fails...
e.g. :
it try to connect to meteor_1 port 3000
the uri is ws://meteor_1:3000/websocket
but int port = this.uri.getPort(); -> -1
can I see the code you're using to connect? It sounds like you have to open port 3000 in your docker compose file...
Th port is not the problem.
The Java URI object is not taking good care of hostname without dot (a docker container's name could be "meteor" for instance). I renamed the docker container in meteor.qc and it worked.
This is not really a bug but it is a limitation caused by the URI object.
You just have to know that :D