Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 130 forks source link

Port bindings for local deployment #266

Open marktani opened 6 years ago

marktani commented 6 years ago

Issue by marktani Thursday Oct 12, 2017 at 20:45 GMT Originally opened as https://github.com/graphcool/prisma/issues/787


Are there other options than 0.0.0.0 and 127.0.0.1? Could it be configurable?

See https://github.com/graphcool/graphcool/issues/766#issuecomment-335972452 and https://github.com/graphcool/graphcool/issues/752#issuecomment-335032432.

marktani commented 6 years ago

Comment by kbrandwijk Thursday Oct 12, 2017 at 21:06 GMT


I think the easiest option is make this configurable using an environment variable or command-line parameter.

marktani commented 6 years ago

Comment by rwatts3 Friday Oct 13, 2017 at 18:53 GMT


I think this could really use a walk through from the core team for Docker Toolbox, the new features are almost impossible to use when you're on a windows 7 pc with docker toolbox which uses virtualbox. It seems as if the command line or the local service is unreachable to the docker virtualbox, therefore sends the user in a medley of loops for authentication when trying to deploy a local project to docker.

For starters, I believe the internals of the local cluster are still expecting http://localhost:60001 , where the application is not available at localhost it's available at the docker machine's ip address which in this cases happens to be something along the lines of 192.168.99.100 or something else.

marktani commented 6 years ago

Comment by arenowebdev Friday Oct 27, 2017 at 03:01 GMT


I confirmed @rwatts3 hunch this evening by enabling debug mode on Mac with Docker Toolbox and found the initial graphcool local up command was pinging http://localhost:60000/system and my system is only responding on the docker-machine IP of 192.168.99.100:60000, which I know as if I hit that /system page in the browser at that IP address I do get the working Playground.

marktani commented 6 years ago

Comment by jbonigomes Wednesday Nov 01, 2017 at 16:14 GMT


I am new to Docker, currently, is there a way to graphcool local up using 0.0.0.0 rather than localhost?