yongjhih / docker-parse-server

Provide docker images and docker stack for parse-server npm versions and latest commit
https://hub.docker.com/r/yongjhih/parse-server/
Apache License 2.0
475 stars 166 forks source link

Can't connect to parse server (hostname: localhost) #23

Closed jacek-berlin closed 8 years ago

jacek-berlin commented 8 years ago

Hello, I used the docker setup (compose). all containers are running on a remote server. I can see the dashboard in my browser . Dashboard is making requests to the server which cannot be contacted, it tries to connect to http://localhost:1337/parse. Dashboard(my browser) sends requests to localhost where locahost is my laptop, not server where docker containers are running. Is there any intended way to make it running over the internet where Dashboard is called in Browser which does not run on the same machine as docker containers?

thank you

yongjhih commented 8 years ago

SERVER_URL=http://<PUBLIC_IP>:1337/parse APP_ID=myAppId MASTER_KEY=myMasterKey docker-compose up -d

jacek-berlin commented 8 years ago

Thanks, I changed the SERVER_URL in docker-compose and placed separate vhosts for dashboard and server.

arielelkin commented 8 years ago

Please update the documentation, otherwise the docker-compose file only works for localhost.

yongjhih commented 8 years ago

More info for parse-dashboard: https://github.com/yongjhih/docker-parse-dashboard

yongjhih commented 8 years ago

BTW, I've added a chapter about letsencrypt: https://github.com/yongjhih/docker-parse-server#usage-of-letsencrypt-for-parse-dashboard-with-https-certificated-domain