Closed ecerroni closed 7 years ago
That is correct; now that Meteor does not allow running as root, you may not bind to port 80. With a container, that should not normally be a problem. Just set the PORT
environment variable to some other port (>1024), and Meteor will bind to that port instead. If you wish Docker to expose that port as port 80 externally, you may do so easily, as well.
In your case, I would modify your execution thus:
docker run --rm \
-e MONGO_URL=mongodb://172.17.0.2:27017/appdb \
-e ROOT_URL=http://testsite.com \
-e PORT=3000 \
-p 80:3000 \
-v $(pwd):/home/meteor/src \
ulexus/meteor
I see. It worked like a charm!
I'm getting the following error when launching the container with:
ERROR: