question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I 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:closed
  • Created 7 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kandizzycommented, Feb 24, 2017

@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:

  • removed PORT from meteor.env and set meteor.port to 3000
  • added a VIRTUAL_HOST variable to meteor.env with the vhost name from my nginx conf
  • upgraded this npm module locally with the changes from this PR
  • removed meteor.dockerImage and replaced it with meteor.docker which looks like this
docker: {
      image: 'abernix/spaceglue:node-4.6.2-builddeps',
      imagePort: 3000
    }

Now my docker container looks like this

abernix/spaceglue:node-4.6.2-builddeps   "/bin/sh -c ./run_..."   About an hour ago   Up About an hour    0.0.0.0:32770->3000/tcp

My nginx conf looks just like the one you pasted above and it works 😃

0reactions
ivanthemehcommented, Feb 23, 2017

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Port forwarding
In computer networking, port forwarding or port mapping is an application of network address translation (NAT) that redirects a communication request from ...
Read more >
What Is Port Forwarding? - A Beginner's Guide
Port forwarding, sometimes called port mapping, allows computers or services in private networks to connect over the internet with other ...
Read more >
How to Port Forward - General Guide to Multiple Router ...
This guide is a port forwarding how to for the very beginner. Follow the steps outlined to find your default gateway for general...
Read more >
How To Set Up Port Forwarding - Port Forward
A port forward is a way of making a computer on your home or business network accessible to computers on the internet, even...
Read more >
Port Forwarding Explained - YouTube
This is an animated port forwarding tutorial. It explains how to port forward and it also explains what are network ports.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found