Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
yongjhih committed Mar 22, 2016
1 parent d76c4aa commit 92a4b37
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ Most pulled:
```sh
$ docker run -d -p 27017:27017 --name mongo mongo

$ docker run -d \
-e APP_ID={appId} \
-e MASTER_KEY={masterKey} \
-p 1337:1337 \
-p 2022:22 \
--link mongo \
--name parse-server \
$ 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

# Test parse-server
Expand All @@ -68,11 +68,11 @@ $ curl -X POST \
http://localhost:1337/parse/functions/hello

$ docker run -d \
-e APP_ID={appId} \
-e MASTER_KEY={masterKey} \
-p 4040:4040 \
--link parse-server \
--name parse-dashboard \
-e APP_ID=${PARSE_APP_ID} \
-e MASTER_KEY=${PARSE_MASTER_KEY} \
-p 4040:4040 \
--link parse-server \
--name parse-dashboard \
yongjhih/parse-dashboard
```

Expand All @@ -99,7 +99,7 @@ $ git add main.js && git commit -m 'Update main.js'
$ git push origin master

$ curl -X POST \
-H "X-Parse-Application-Id: {appId}" \
-H "X-Parse-Application-Id: ${PARSE_APP_ID}" \
-H "Content-Type: application/json" \
-d '{}' \
http://localhost:1337/parse/functions/hello
Expand All @@ -113,9 +113,9 @@ $ curl -X POST \

```sh
$ docker run -d \
-e DATABASE_URI={mongodb://mongodb.intra:27017/dev} \
-e APP_ID={appId} \
-e MASTER_KEY={masterKey} \
-e DATABASE_URI=${PARSE_DATABASE_URI:-mongodb://mongodb.intra:27017/dev} \
-e APP_ID=${PARSE_APP_ID} \
-e MASTER_KEY=${PARSE_MASTER_KEY} \
-p 1337:1337 \
-p 2022:22 \
--name parse-server \
Expand All @@ -135,14 +135,14 @@ With host folder:

```sh
$ docker run -d \
-v {/home/yongjhih/parse/cloud}:/parse/cloud \
-e DATABASE_URI={mongodb://mongodb.intra:27017/dev} \
-e APP_ID={appId} \
-e MASTER_KEY={masterKey} \
-p 1337:1337 \
-p 2022:22 \
--link mongo \
--name parse-server \
-v ${PARSE_CLOUD:-/home/yongjhih/parse/cloud}:/parse/cloud \
-e DATABASE_URI=${PARSE_DATABASE_URI:-mongodb://mongodb.intra:27017/dev} \
-e APP_ID={appId} \
-e MASTER_KEY={masterKey} \
-p 1337:1337 \
-p 2022:22 \
--link mongo \
--name parse-server \
yongjhih/parse-server
```

Expand All @@ -151,17 +151,17 @@ With volume container:
```sh
$ docker create --name parse-cloud-code \
-v /parse/cloud \
{yongjhih/parse-cloud-code} echo ls /parse/cloud
${DOCKER_PARSE_CLOUD:-yongjhih/parse-cloud-code} echo ls /parse/cloud

$ docker run -d \
--volumes-from parse-cloud-code \
-e DATABASE_URI={mongodb://mongodb.intra:27017/dev} \
-e APP_ID={appId} \
-e MASTER_KEY={masterKey} \
-p 1337:1337 \
-p 2022:22 \
--link mongo \
--name parse-server \
--volumes-from parse-cloud-code \
-e DATABASE_URI=${PARSE_DATABASE_URI:-mongodb://mongodb.intra:27017/dev} \
-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
```

Expand All @@ -170,13 +170,13 @@ $ docker run -d \
Specify parse-server:2.2.0:

```sh
$ docker run -d \
-e APP_ID={appId} \
-e MASTER_KEY={masterKey} \
-p 1337:1337 \
-p 2022:22 \
--link mongo \
--name parse-server \
$ 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:2.2.0
```

Expand All @@ -186,13 +186,13 @@ ref. https://www.npmjs.com/package/parse-server
### Usage of specific latest commit of [ParsePlatform/parse-server](https://github.com/ParsePlatform/parse-server) of image

```sh
$ docker run -d \
-e APP_ID={appId} \
-e MASTER_KEY={masterKey} \
-p 1337:1337 \
-p 2022:22 \
--link mongo \
--name parse-server \
$ 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:dev
```

Expand Down

0 comments on commit 92a4b37

Please sign in to comment.