-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mongo Express: Update docs of mongo-express #2401
Open
berviantoleo
wants to merge
3
commits into
docker-library:master
Choose a base branch
from
berviantoleo:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -9,7 +9,7 @@ mongo-express is a web-based MongoDB admin interface written in Node.js, Express | |||||
# How to use this image | ||||||
|
||||||
```console | ||||||
$ docker run --network some-network -e ME_CONFIG_MONGODB_SERVER=some-mongo -p 8081:8081 %%IMAGE%% | ||||||
$ docker run --link some_mongo_container:mongo -p 8081:8081 -e ME_CONFIG_MONGODB_URL="mongodb://mongo:27017" mongo-express | ||||||
``` | ||||||
|
||||||
Then you can hit `http://localhost:8081` or `http://host-ip:8081` in your browser. | ||||||
|
@@ -26,13 +26,10 @@ Environment vairables are passed to the `run` command for configuring a mongo-ex | |||||
|
||||||
Name | Default | Description | ||||||
--------------------------------|-----------------|------------ | ||||||
ME_CONFIG_MONGODB_URL | 'mongodb://mongo:27017' | MongoDB connection string | ||||||
ME_CONFIG_BASICAUTH_USERNAME | '' | mongo-express web username | ||||||
ME_CONFIG_BASICAUTH_PASSWORD | '' | mongo-express web password | ||||||
ME_CONFIG_MONGODB_ENABLE_ADMIN | 'true' | Enable admin access to all databases. Send strings: `"true"` or `"false"` | ||||||
ME_CONFIG_MONGODB_ADMINUSERNAME | '' | MongoDB admin username | ||||||
ME_CONFIG_MONGODB_ADMINPASSWORD | '' | MongoDB admin password | ||||||
ME_CONFIG_MONGODB_PORT | 27017 | MongoDB port | ||||||
ME_CONFIG_MONGODB_SERVER | 'mongo' | MongoDB container name. Use comma delimited list of host names for replica sets. | ||||||
ME_CONFIG_OPTIONS_EDITORTHEME | 'default' | mongo-express editor color theme, [more here](http://codemirror.net/demo/theme.html) | ||||||
ME_CONFIG_REQUEST_SIZE | '100kb' | Maximum payload size. CRUD operations above this size will fail in [body-parser](https://www.npmjs.com/package/body-parser). | ||||||
ME_CONFIG_SITE_BASEURL | '/' | Set the baseUrl to ease mounting at a subdirectory. Remember to include a leading and trailing slash. | ||||||
|
@@ -54,14 +51,14 @@ The following are only needed if `ME_CONFIG_MONGODB_ENABLE_ADMIN` is **"false"** | |||||
|
||||||
```console | ||||||
$ docker run -it --rm \ | ||||||
--network web_default \ | ||||||
--name mongo-express \ | ||||||
-p 8081:8081 \ | ||||||
-e ME_CONFIG_OPTIONS_EDITORTHEME="ambiance" \ | ||||||
-e ME_CONFIG_MONGODB_SERVER="web_db_1" \ | ||||||
-e ME_CONFIG_BASICAUTH_USERNAME="user" \ | ||||||
-e ME_CONFIG_BASICAUTH_PASSWORD="fairly long password" \ | ||||||
%%IMAGE%% | ||||||
--name mongo-express \ | ||||||
--link web_db_1:mongo \ | ||||||
-p 8081:8081 \ | ||||||
-e ME_CONFIG_MONGODB_URL="mongodb://mongo:27017" \ | ||||||
-e ME_CONFIG_OPTIONS_EDITORTHEME="ambiance" \ | ||||||
-e ME_CONFIG_BASICAUTH_USERNAME="user" \ | ||||||
-e ME_CONFIG_BASICAUTH_PASSWORD="fairly long password" \ | ||||||
mongo-express | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
``` | ||||||
|
||||||
This example links to a container name typical of `docker-compose`, changes the editor's color theme, and enables basic authentication. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also,
--link
is deprecated and we removed it from most of our docs intentionally; see #1441