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

Dashboard doesn't work when running docker-compose.yml #22

Closed arielelkin closed 8 years ago

arielelkin commented 8 years ago

I followed the instructions to wget and docker-compose up the docker-compose file

The server, dashboard, and mongo are created successfully.

Server responds successfully when I /functions/hello/ to it.

But the dashboard doesn't work. If I go to localhost:40404/index.view, I get an empty page. Here's the source:

<!DOCTYPE html>
<html>
  <title>Parse Dashboard</title>
  <body>
    <div id="browser_mount"></div>
    <script src="/bundles/dashboard.bundle.js"></script>
  </body>
</html>
yongjhih commented 8 years ago

yongjhih/docker-parse-dashboard@a35f878 fixed it.

Try it after docker pull yongjhih/parse-dashboard

arielelkin commented 8 years ago

Thanks for your reply, but I get the same blank page.

I removed all my parse and mongo containers, and did a docker pull yongjhih/parse-dashboard

Then I did the instructions for the compose file:

$ wget https://github.com/yongjhih/docker-parse-server/raw/master/docker-compose.yml
$ APP_ID=myAppId MASTER_KEY=myMasterKey docker-compose up -d

I get this output:

$ APP_ID=id MASTER_KEY=key docker-compose up -d
WARNING: The MAX_UPLOAD_SIZE variable is not set. Defaulting to a blank string.
WARNING: The PARSE_MOUNT variable is not set. Defaulting to a blank string.
WARNING: The DEV_CERT variable is not set. Defaulting to a blank string.
WARNING: The TRUST_PROXY variable is not set. Defaulting to a blank string.
WARNING: The PRODUCTION_KEY variable is not set. Defaulting to a blank string.
WARNING: The DEV_PFX variable is not set. Defaulting to a blank string.
WARNING: The PRODUCTION_CERT variable is not set. Defaulting to a blank string.
WARNING: The REST_API_KEY variable is not set. Defaulting to a blank string.
WARNING: The GCM_KEY variable is not set. Defaulting to a blank string.
WARNING: The DEV_KEY variable is not set. Defaulting to a blank string.
WARNING: The JAVASCRIPT_KEY variable is not set. Defaulting to a blank string.
WARNING: The PRODUCTION_BUNDLE_ID variable is not set. Defaulting to a blank string.
WARNING: The DEV_BUNDLE_ID variable is not set. Defaulting to a blank string.
WARNING: The APP_NAME variable is not set. Defaulting to a blank string.
WARNING: The ENABLE_ANON_USERS variable is not set. Defaulting to a blank string.
WARNING: The DOTNET_KEY variable is not set. Defaulting to a blank string.
WARNING: The FACEBOOK_APP_IDS variable is not set. Defaulting to a blank string.
WARNING: The PUBLIC_SERVER_URL variable is not set. Defaulting to a blank string.
WARNING: The SERVER_URL variable is not set. Defaulting to a blank string.
WARNING: The FILE_KEY variable is not set. Defaulting to a blank string.
WARNING: The PRODUCTION_PFX variable is not set. Defaulting to a blank string.
WARNING: The ALLOW_CLIENT_CLASS_CREATION variable is not set. Defaulting to a blank string.
WARNING: The VERIFY_USER_EMAILS variable is not set. Defaulting to a blank string.
WARNING: The DATABASE_URI variable is not set. Defaulting to a blank string.
WARNING: The GCM_ID variable is not set. Defaulting to a blank string.
WARNING: The COLLECTION_PREFIX variable is not set. Defaulting to a blank string.
WARNING: The CLIENT_KEY variable is not set. Defaulting to a blank string.
WARNING: The PARSE_REST_KEY variable is not set. Defaulting to a blank string.
WARNING: The PARSE_APP_NAME variable is not set. Defaulting to a blank string.
WARNING: The PARSE_APP_ID variable is not set. Defaulting to a blank string.
WARNING: The PARSE_JS_KEY variable is not set. Defaulting to a blank string.
WARNING: The PARSE_MASTER_KEY variable is not set. Defaulting to a blank string.
WARNING: The PARSE_SERVER_URL variable is not set. Defaulting to a blank string.
Starting user_parse-cloud-code_1
Starting user_mongo-data_1
Creating user_mongo_1
Creating user_parse-server_1
Creating user_parse-dashboard_1

Any thoughts?

arielelkin commented 8 years ago

this just appeared:

image

is it the reason?

yongjhih commented 8 years ago

If blank page:

Is your docker-compose as a container? docker-compose container has a bug about environment variables, so you must use release version by the following command:

curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
yongjhih commented 8 years ago

Try to remove -d --detach option for more info: APP_ID=myAppId MASTER_KEY=myMasterKey docker-compose up

yongjhih commented 8 years ago

If HTTPS issue:

You should access remote dashboard via HTTPS or allow insecure http by the following command:

PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1 USER1=user1 _name USER1_PASSWORD=user1_password APP_ID=myAppId MASTER_KEY=myMasterKey docker-compose up

yongjhih commented 8 years ago

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

yongjhih commented 8 years ago

Usage of standalone parse dashboard

Up standalone parse-dashboard: https://github.com/yongjhih/docker-parse-dashboard

Up other containers without parse-dashboard:

$ APP_ID=myAppId MASTER_KEY=myMasterKey docker-compose up -d -f docker-compose-without-dashboard.yml