文档参数
先看看mongo-express的docker文档,熟悉参数很重要:
Name | Default | Description |
---|---|---|
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 |
ME_CONFIG_REQUEST_SIZE | ‘100kb’ | Maximum payload size. CRUD operations above this size will fail in body-parser. |
ME_CONFIG_SITE_BASEURL | ‘/’ | Set the baseUrl to ease mounting at a subdirectory. Remember to include a leading and trailing slash. |
ME_CONFIG_SITE_COOKIESECRET | ‘cookiesecret’ | String used by cookie-parser middleware to sign cookies. |
ME_CONFI |