Skip to content

Commit

Permalink
Explicitly link the host port
Browse files Browse the repository at this point in the history
  • Loading branch information
knickers committed Jan 14, 2016
1 parent 93a2dfa commit 5109ed8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN npm install
RUN cp config.default.js config.js

ENV ME_CONFIG_MONGODB_SERVER="mongo"
ENV VCAP_APP_HOST="0.0.0.0"

EXPOSE 8081
CMD ["tini", "--", "npm", "start"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ First, build an image from the project directory:

Then run the image. Make sure you have a running [MongoDB container](https://registry.hub.docker.com/_/mongo/) and specify it's name in the `--link` argument.

docker run -it --rm --link YOUR_MONGODB_CONTAINER:mongo mongo-express
docker run -it --rm -p 8081:8081 --link YOUR_MONGODB_CONTAINER:mongo mongo-express

You can use the following [environment variables](https://docs.docker.com/reference/run/#env-environment-variables) to modify the container's configuration:

Expand All @@ -159,6 +159,7 @@ You can use the following [environment variables](https://docs.docker.com/refere
docker run -it --rm \
--name mongo-express \
--link web_db_1:mongo \
-p 8081:8081 \
-e ME_CONFIG_OPTIONS_EDITORTHEME="ambiance" \
-e ME_CONFIG_BASICAUTH_USERNAME="" \
mongo-express
Expand Down

0 comments on commit 5109ed8

Please sign in to comment.