Here's what I get trying to access the parse-dashboard running on Docker (local)
Here's the docker command I run:
docker run -d -p 4040:4040 --name myappname-local-dashboard -e PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1 -e USER1=admin -e USER1_PASSWORD=pass -v /home/xybrek/parse-dashboard/config.json:/home/xybrek/parse-dashboard/Parse-Dashboard/parse-dashboard-config.json parse-dashboard
config.json
{
"appId": "appId",
"cloud": "main.js",
"masterKey": "masterKey",
"javascriptKey" : "javascriptKey",
"restAPIKey" : "restAPIKey",
"databaseURI": "mongodb://localhost/test",
"port": 8080
}
parse-dashboard-config.json
{
"apps": [{
"serverURL": "http://localhost:1337/parse",
"appId": "appId",
"masterKey": "masterKey",
"appName": "myappname",
"iconName": ""
}],
"iconsFolder": "icons",
"users":
[
{
"user":"admin",
"pass":"pass"
}
]
}
What could be wrong here?
You're placing the config in a wrong place.
Use this:
docker run -d -p 4040:4040 --name myappname-local-dashboard \
-e PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1 \
-e USER1=admin \
-e USER1_PASSWORD=pass \
-v $(pwd)/parse-dashboard-config.json:/src/Parse-Dashboard/parse-dashboard-config.json \
parse-dashboard
Also I changed the source of the volume ($(pwd)/parse-dashboard-config.json
) to get the config from your current dir.
See docs.
Edit. Maybe you need to add apps
to user config:
{
"apps": [{
"serverURL": "http://localhost:1337/parse",
"appId": "appId",
"masterKey": "masterKey",
"appName": "myappname",
"iconName": ""
}],
"iconsFolder": "icons",
"users":
[
{
"user":"admin",
"pass":"pass",
"apps": [{"appId": "appId"}]
}
]
}