CyCoreSystems / docker-meteor

Dockerfile and script for running Meteor on Docker
MIT License
120 stars 73 forks source link

Local dev on windows #42

Closed ilan-schemoul closed 7 years ago

ilan-schemoul commented 7 years ago

Hello I'm new to docker and I may like to use this image to run a local server on my Windows host so I can test docker a bit (besides I'm wondering if this way, Meteor could be faster than with the Windows native way). Seemingly I need to provide a MONGO_URL and a ROOT_URL I'm not sure to understand that part, when one runs meteor in the command line a server is started which is accessible localhost:3000, he doesn't have to do anything special. I understand that these URLs must be furnished for prod but then how do I do in local dev (if it's even possible). I tried :

docker run --rm -v /Easy_16.1.1/eds-www/28bis-WORKSHEETS:/home/meteor/src -e ROOT_URL=http://localhost -e MONGO_URL=127.0.0.1:3001/meteor ulexus/meteor
Unable to locate server directory in ; hold on: we're likely to fail
Failed to locate main.js in ; cannot start application.
ilan-schemoul commented 7 years ago

Okay sorry I tried for a while and I'm now good thanks. If this could help someone I had to click in the icon is the taskbar with a whale, I enabled C as a shared drive so I could pass this to meteor run: -v C:\Easy_16.1.1\eds-www\28-WORKSHEETS:/home/meteor/src

ilan-schemoul commented 7 years ago

As seen of docs of other meteor docker images and the issue in this repo one should definitively better document running local image ! Nothing is obvious when you start to use Docker to use Meteor : MONGO_URL, ROOT_URL which cannot be localhost because containers are isolated etc.