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

Auto create random master key and appId #16

Open yongjhih opened 8 years ago

acinader commented 8 years ago

I'd also suggest that changing all of the docs to use and env var for key and appid.

So a doc code snippet would look like:

$ docker run -d                              \
             -e APP_ID=$PARSE_APP_ID         \
             -e MASTER_KEY=$PARSE_MASTER KEY \
             -p 1337:1337                    \
             -p 2022:22                      \
             --link mongo                    \
             --name parse-server             \
             yongjhih/parse-server

That way if the user sets the env vars they will be able to copy and paste all of the commands without having to edit. By using good names, it'll still be clear what is going on. Just an idea ;)