You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -92,16 +92,15 @@ Run the image with your ``config.json`` mounted as a volume
92
92
docker run -d -p 8080:4040 -v host/path/to/config.json:/src/Parse-Dashboard/parse-dashboard-config.json parse-dashboard
93
93
```
94
94
95
-
The container will boot up using the default command ``npm run dashboard``
95
+
By default, the container will start the app at port 4040 inside the container. However, you can run custom command as well (see ``Deploying in production`` for custom setup).
96
96
97
-
However, you can run custom command as well (see ``Deploying in production`` for custom setup).
98
-
99
-
In this example, we want to run the custom command without HTTPS, which is necessary if you are developing using docker on Mac since docker does not run on localhost.
97
+
In this example, we want to run the application in production mode at port 80 of the host machine.
docker run -d -p 80:8080 -v host/path/to/config.json:/src/Parse-Dashboard/parse-dashboard-config.json parse-dashboard --port 8080
103
101
```
104
-
If you are not familiar with Docker, ``npm start -- --allowInsecureHTTP=1`` is the custom command.
102
+
103
+
If you are not familiar with Docker, ``--port 8080`` with be passed in as argument to the entrypoint to form the full command ``npm start -- --port 8080``. The application will start at port 8080 inside the container and port ``8080`` will be mounted to port ``80`` on your host machine.
0 commit comments