Dockerizing Parse Server (#3005)
* Add Dockerfile * Add Docker image docs * Remove default PARSE_SERVER_CLOUD_CODE_MAIN setting + update docs * Update docs * Update documentation
This commit is contained in:
committed by
Florent Vilmart
parent
2fb4f89324
commit
71fb6cef5e
10
README.md
10
README.md
@@ -16,14 +16,22 @@ April 2016 - We created a series of video screencasts, please check them out her
|
||||
|
||||
The fastest and easiest way to get started is to run MongoDB and Parse Server locally.
|
||||
|
||||
## Running Parse Server locally
|
||||
## Running Parse Server
|
||||
|
||||
### Locally
|
||||
```
|
||||
$ npm install -g parse-server mongodb-runner
|
||||
$ mongodb-runner start
|
||||
$ parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://localhost/test
|
||||
```
|
||||
|
||||
### Inside a Docker container
|
||||
```
|
||||
$ docker build --tag my-parse-server .
|
||||
$ docker run --name my-mongo -d mongo
|
||||
$ docker run --name my-parse-server --link my-mongo:mongo parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://mongo/test
|
||||
```
|
||||
|
||||
You can use any arbitrary string as your application id and master key. These will be used by your clients to authenticate with the Parse Server.
|
||||
|
||||
That's it! You are now running a standalone version of Parse Server on your machine.
|
||||
|
||||
Reference in New Issue
Block a user