{"id":20508048,"url":"https://github.com/mongo-express/mongo-express-docker","last_synced_at":"2025-04-05T23:11:06.265Z","repository":{"id":40251898,"uuid":"52123634","full_name":"mongo-express/mongo-express-docker","owner":"mongo-express","description":"a dockerized mongo-express for viewing mongoDB in the browser","archived":false,"fork":false,"pushed_at":"2024-07-18T22:56:16.000Z","size":121,"stargazers_count":211,"open_issues_count":37,"forks_count":92,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-29T22:06:59.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongo-express.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-19T23:34:19.000Z","updated_at":"2025-03-26T00:22:30.000Z","dependencies_parsed_at":"2024-04-12T02:47:21.404Z","dependency_job_id":"64fd399d-e5d0-4d68-b570-04e029412879","html_url":"https://github.com/mongo-express/mongo-express-docker","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongo-express%2Fmongo-express-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongo-express%2Fmongo-express-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongo-express%2Fmongo-express-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongo-express%2Fmongo-express-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongo-express","download_url":"https://codeload.github.com/mongo-express/mongo-express-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411235,"owners_count":20934653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T20:16:38.437Z","updated_at":"2025-04-05T23:11:06.241Z","avatar_url":"https://github.com/mongo-express.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is mongo-express?\n\nmongo-express is a web-based MongoDB admin interface written in Node.js, Express.js, and Bootstrap3.\n\n\u003e [github.com/mongo-express/mongo-express](https://github.com/mongo-express/mongo-express)\n\n![logo](https://raw.githubusercontent.com/mongo-express/mongo-express-docker/master/logo.png)\n\n# How to use this image\n\n[![Try in PWD](https://raw.githubusercontent.com/play-with-docker/stacks/master/assets/images/button.png)](https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/mongo-express/mongo-express-docker/master/docker-compose.yml)\n\n```console\n$ docker run --link some_mongo_container:mongo -p 8081:8081 -e ME_CONFIG_MONGODB_URL=\"mongodb://mongo:27017\" mongo-express\n```\n\nThen you can hit `http://localhost:8081` or `http://host-ip:8081` in your browser.\n\nSome alternatives for the `ME_CONFIG_MONGODB_URL` environment variable:\n- `mongodb://host.docker.internal:27017`\n- `mongodb://host.containers.internal:27017`\n\n## Security Notice\n\nJSON documents are parsed through a javascript virtual machine, so the web interface can be used to execute malicious javascript on a server.\n\n**mongo-express should only be used privately for development purposes.**\n\n# Build\nBuild the mongo-express image using `Dockerfile` and `docker-entrypoint.sh` files.\n\nIn below commands go to the folder (e.g. `cd 1.0/20-alpine3.18`) or replace final `.` with folder path (e.g. `1.0/20-alpine3.18`).\n\n#### Build the mongo-express image:\n```console\ndocker build --tag mongo-express .\n```\n\n#### Build with a specific version of mongo-express:\n```console\ndocker build --build-arg MONGO_EXPRESS_VERSION=release/v1.0.2 --tag mongo-express .\n```\n\n#### Build with a specific (forked) repository of mongo-express:\n```console\ndocker build --build-arg MONGO_EXPRESS_REPOSITORY=OtherUser/mongo_express --tag mongo-express .\n```\n\n# Configuration\n\nEnvironment variables are passed to the `run` command for configuring a mongo-express container.\n\nName | Default | Description\n| - | - | -\n`ME_CONFIG_MONGODB_URL` | `mongodb://mongo:27017` | MongoDB connection string\n`ME_CONFIG_BASICAUTH_USERNAME` | | mongo-express web username\n`ME_CONFIG_BASICAUTH_PASSWORD` | | mongo-express web password\n`ME_CONFIG_CONNECT_RETRIES` | `10` | Number of startup connection retry attempts to be made\n`ME_CONFIG_MONGODB_ENABLE_ADMIN` | `true` | Enable admin access to all databases. Send strings: `\"true\"` or `\"false\"`\n`ME_CONFIG_OPTIONS_EDITORTHEME` | `default` | mongo-express editor color theme, [more here](http://codemirror.net/demo/theme.html)\n`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).\n`ME_CONFIG_SITE_BASEURL` | `/` | Set the baseUrl to ease mounting at a subdirectory. Remember to include a leading and trailing slash.\n`ME_CONFIG_SITE_COOKIESECRET` | `cookiesecret` | String used by [cookie-parser middleware](https://www.npmjs.com/package/cookie-parser) to sign cookies.\n`ME_CONFIG_SITE_SESSIONSECRET` | `sessionsecret` | String used to sign the session ID cookie by [express-session middleware](https://www.npmjs.com/package/express-session).\n`ME_CONFIG_SITE_SSL_ENABLED` | `false` | Enable SSL.\n`ME_CONFIG_SITE_SSL_CRT_PATH` | | SSL certificate file.\n`ME_CONFIG_SITE_SSL_KEY_PATH` | | SSL key file.\n\n\nThe following are only needed if `ME_CONFIG_MONGODB_ENABLE_ADMIN` is **\"false\"**\n\nName | Default | Description\n| - | - | -\n`ME_CONFIG_MONGODB_AUTH_DATABASE` | `db` | Database name\n`ME_CONFIG_MONGODB_AUTH_USERNAME` | `admin` | Database username\n`ME_CONFIG_MONGODB_AUTH_PASSWORD` | `pass` | Database password\n\n## Example\n\n\tdocker run -it --rm \\\n\t\t--name mongo-express \\\n\t\t--link web_db_1:mongo \\\n\t\t-p 8081:8081 \\\n\t\t-e ME_CONFIG_MONGODB_URL=\"mongodb://mongo:27017\" \\\n\t\t-e ME_CONFIG_OPTIONS_EDITORTHEME=\"ambiance\" \\\n\t\t-e ME_CONFIG_BASICAUTH_USERNAME=\"user\" \\\n\t\t-e ME_CONFIG_BASICAUTH_PASSWORD=\"fairly long password\" \\\n\t\tmongo-express\n\nThis example links to a container name typical of `docker-compose`, changes the editor's color theme, and enables basic authentication.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongo-express%2Fmongo-express-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongo-express%2Fmongo-express-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongo-express%2Fmongo-express-docker/lists"}