meteorhacks / meteord

MeteorD - Docker Runtime for Meteor Apps for Production Deployments
https://registry.hub.docker.com/u/meteorhacks/meteord/
MIT License
439 stars 371 forks source link

Honour already existing PORT variable #43

Closed borgand closed 9 years ago

borgand commented 9 years ago

Dokku uses Nginx for proxying in front of Docker containers. Currently the setup seems fixed to port 5000 which meant that it could not connect to meteord container which was fixed to port 80.

This patch exports PORT if that was already set while defaulting to 80 if it was not, so that Docker configuration can override the port.

(This was needed to get Rocket.Chat working in Dokku)

arunoda commented 9 years ago

Okay. Thanks.