Skip to content

Commit de5bc3a

Browse files
githubsaturndavimacedo
authored andcommitted
Added volumes to Docker command (parse-community#6356)
Added volumes to Docker command parse-community#6353
1 parent cc89ca1 commit de5bc3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ $ git clone https://github.com/parse-community/parse-server
9999
$ cd parse-server
100100
$ docker build --tag parse-server .
101101
$ docker run --name my-mongo -d mongo
102-
$ docker run --name my-parse-server -p 1337:1337 --link my-mongo:mongo -d parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://mongo/test
102+
$ docker run --name my-parse-server -v cloud-code-vol:/parse-server/cloud -v config-vol:/parse-server/config -p 1337:1337 --link my-mongo:mongo -d parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://mongo/test
103103
```
104104

105105
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.
@@ -443,7 +443,7 @@ $ git clone https://github.com/parse-community/parse-server
443443
$ cd parse-server
444444
$ docker build --tag parse-server .
445445
$ docker run --name my-mongo -d mongo
446-
$ docker run --name my-parse-server --link my-mongo:mongo -p 1337:1337 -d parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://mongo/test --publicServerURL http://localhost:1337/parse --mountGraphQL --mountPlayground
446+
$ docker run --name my-parse-server --link my-mongo:mongo -v cloud-code-vol:/parse-server/cloud -v config-vol:/parse-server/config -p 1337:1337 -d parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://mongo/test --publicServerURL http://localhost:1337/parse --mountGraphQL --mountPlayground
447447
```
448448

449449
After starting the server, you can visit http://localhost:1337/playground in your browser to start playing with your GraphQL API.

0 commit comments

Comments
 (0)