java-ddp-client icon indicating copy to clipboard operation
java-ddp-client copied to clipboard

Docker and DDP

Open Antoine-O opened this issue 8 years ago • 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...

Antoine-O avatar Oct 26 '16 23:10 Antoine-O

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

Antoine-O avatar Oct 26 '16 23:10 Antoine-O

can I see the code you're using to connect? It sounds like you have to open port 3000 in your docker compose file...

kenyee avatar Nov 01 '16 15:11 kenyee

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

Antoine-O avatar Nov 01 '16 19:11 Antoine-O