Git Product home page Git Product logo

Comments (8)

arunoda avatar arunoda commented on September 13, 2024

You need to set a correct Mongo URL? You need to run a mongodb server on
port 3001, according to the above settings.

On Mon, May 18, 2015 at 9:36 PM Nicolas Grenié [email protected]
wrote:

Hi,

Thanks for this project :) I am very interested to dockerize my project,
to simplify it's distribution.

I was able to create the image but when I try to run it with this command

docker run -d
-e ROOT_URL=http://localhost:3000
-e MONGO_URL=mongodb://localhost:3001/meteor
-e METEOR_SETTINGS='{ALL_MY_SETTINGS}'
-p 3000:80
picsoung/apisio

but in the logs of the container I have Error: failed to connect to
[localhost:3001]
I am just trying to run on the default port.

What goes wrong?
Thanks for your help :)


Reply to this email directly or view it on GitHub
#20.

from meteord.

picsoung avatar picsoung commented on September 13, 2024

the default mongodb server is not on 3001 when you just run your meteor application with meteor ?

from meteord.

arunoda avatar arunoda commented on September 13, 2024

meteord is different. It don't use meteor to run your app. It's a meteor
bundle running with pure node. It don't have mongodb as well.

On Mon, May 18, 2015 at 9:42 PM Nicolas Grenié [email protected]
wrote:

the default mongodb server is not on 3001 when you just run your meteor
application with meteor ?


Reply to this email directly or view it on GitHub
#20 (comment).

from meteord.

picsoung avatar picsoung commented on September 13, 2024

I see... so I have to add instructions to launch the mongodb server ?
Where should it go?
on the Dockerfile?

from meteord.

markshust avatar markshust commented on September 13, 2024

any update on this? trying to just run a standard meteor app. do we have to deploy a second container for mongo?

from meteord.

ryneeverett avatar ryneeverett commented on September 13, 2024

@picsoung @markoshust Yes, you need to run mongo separately. For an example of how to do this with docker, see the example in the comment at the end of the docker registry page.

from meteord.

markshust avatar markshust commented on September 13, 2024

Thanks, I get it now. The 'meteor' command caused us not to think of how much node is involved and how it runs meteor. This article explained quite a bit for me - http://www.qasimzeeshan.com/how-to-deploy-meteor-telescope-on-centos/

This ticket can probably be closed because it's not an issue.

from meteord.

levino avatar levino commented on September 13, 2024

Just to clarify: Meteor runs its own "fake" mongodb when in development mode. This is not a production mongodb. You need to deploy and connect a proper mongod instance on your service / network. You can then tell Meteor to connect via network or locally to the mongodb. If you choose the latter you need to link the mongo container to the meteor container.

from meteord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.