Skip to content

Commit f0fc52c

Browse files
committed
Added documentation for Docker
1 parent 46866b2 commit f0fc52c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,24 @@ If you want to require a username and password to access the dashboard, you can
7878

7979
HTTPS and Basic Auth are mandatory if you are accessing the dashboard remotely instead of accessing it from `localhost`.
8080

81+
## Run with Docker
82+
83+
It is easy to use it with Docker. First build the image:
84+
85+
docker build -t parse-dashboard .
86+
87+
Run the image with your ``config.json`` mounted as a volume
88+
89+
docker run -d -p 8080:4040 -v host/path/to/config.json:/src/Parse-Dashboard/parse-dashboard-config.json parse-dashboard
90+
91+
The container will boot up using the default command ``npm run dashboard``
92+
93+
However, you can run custom command as well (see ``Deploying in production`` for custom setup)
94+
95+
docker run -d -p 8080:4040 -v host/path/to/config.json:/src/Parse-Dashboard/parse-dashboard-config.json parse-dashboard npm start -- --allowInsecureHTTP=1
96+
97+
If you are not familiar with Docker, ``npm start -- --allowInsecureHTTP=1`` is the custom command.
98+
8199
## Deploying in production
82100

83101
If you're deploying to a provider like Heroku, or Google App Engine, the SSL endpoint is terminated early and handled by the provider and you may encounter this error `Parse Dashboard can only be remotely accessed via HTTPS`.

0 commit comments

Comments
 (0)