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

Configure a user to access Parse Dashboard remotely #74

Open Aleyasen opened 7 years ago

Aleyasen commented 7 years ago

I used the sample command in the docker hub page (with PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1 and username/password), but when I visit the http://myhost:4040/ I am getting the following message:

Configure a user to access Parse Dashboard remotely

This is the command for running parse-dashboard docker:

docker run -d \
             -e APP_ID=APP_ID\
             -e MASTER_KEY=MASTER_KEY\
             -e SERVER_URL=http://myhost:1337/parse \
             -e PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1  \
             -e USER1=username  \
             -e USER1_PASSWORD=password \
             -p 4040:4040                      \
             --link parse-server               \
             --name parse-dashboard            \
             yongjhih/parse-dashboard
aarshaw commented 7 years ago

Any luck with this? I'm having the same issue...

cyberaxcess commented 7 years ago

+1 I'm also having this issue. Followed the instructions exactly using the option for the allow insecure.

aarshaw commented 7 years ago

Just letting you know, I was able to fix using this answer:

https://github.com/yongjhih/docker-parse-dashboard/issues/11

Which uses the PARSE_DASHBOARD_CONFIG environment variable instead of the specific USER1, USER1_PASSWORD etc.

docker run -d \
        -e PARSE_DASHBOARD_CONFIG='{"apps":[{"appId":"<appid>","serverURL":"<docker-ip>/parse","masterKey":"<masterkey>","appName":"<appname>"}],"users":[{"user":"<username>","pass":"<password>"}]}' \
        -e PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1  \
        -p 4040:4040                      \
        --link parse-server               \
        --name parse-dashboard            \
        yongjhih/parse-dashboard
spagnolodesign commented 7 years ago

fixed by running APP_ID=YOUR_APP_ID MASTER_KEY=YOUR_MASTER_KEY PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1 SERVER_URL=http://localhost:1337/parse USER1=yourUsername USER1_PASSWORD=yourUsernamesPassword docker-compose up -d