Port Mapping
See original GitHub issueI am migrating to mup from mupx and when I was using mupx I was able to setup multiple meteor apps on a single server using the ports set uniquely.
I am trying to set that up and it isnt working. The only way I can get the app to connect is by setting the meteor.env.PORT to 80 0.0.0.0:80->80/tcp
otherwise it refuses to connect 0.0.0.0:3001->80/tcp
.
I was just doing some more testing and have found out that if I go to mysite.com:3001 after setting the port to 3001 in meteor.env.PORT… so it seems like to me its setting it up backwards and exposing the docker to 3001 when it should be doing the app to 3001…am I right?
I am desparate and have been working on this for a while now. Im not a pro by any means but I can follow instructions from anyone who is willing to help me debug this and get it working. Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Comments:21 (6 by maintainers)
Top GitHub Comments
@ivanthemeh i managed to get this working, however i’m not exactly sure which change I made was the one to do the trick. Here’s everything I did though:
PORT
frommeteor.env
and setmeteor.port
to 3000VIRTUAL_HOST
variable tometeor.env
with the vhost name from my nginx confmeteor.dockerImage
and replaced it withmeteor.docker
which looks like thisNow my docker container looks like this
My nginx conf looks just like the one you pasted above and it works 😃
@kandizzy @melkati I was not able to figure this issue out. If either of you do let me know please 😄 I just had to settle for deploying a single instance per server for now.