Public | Automated Build

Last pushed: a year ago
Short Description
mongo-express docker based on alpine base image(mhart/alpine-node). It's around 57MB size of image.
Full Description

docker-mongo-express


scenario #1: docker

docker run -d --name mongo-express -p 8081:8081 \
-e ME_CONFIG_MONGODB_SERVER=<TARGET MONGODB SERVER> \
-e ME_CONFIG_MONGODB_PORT=27017 \
-e ME_CONFIG_MONGODB_ENABLE_ADMIN=true \
-e ME_CONFIG_MONGODB_ADMINUSERNAME=admin \
-e ME_CONFIG_MONGODB_ADMINPASSWORD=guest \
-e ME_CONFIG_MONGODB_AUTH_DATABASE=db \
-e ME_CONFIG_MONGODB_AUTH_USERNAME=user \
-e ME_CONFIG_MONGODB_AUTH_PASSWORD=guest \
-e ME_CONFIG_SITE_BASEURL=/ \
-e VCAP_APP_HOST=0.0.0.0 \
-e VCAP_APP_PORT=8081 \
yunghoy/mongo-express


scenario #2: docker-compose

docker-compose.yml

mongo-express:
image: yunghoy/mongo-express
env_file: dl.env
ports: "8081:8081"

dl.env

ME_CONFIG_MONGODB_SERVER=<TARGET MONGODB SERVER>
ME_CONFIG_MONGODB_PORT=27017
ME_CONFIG_MONGODB_ENABLE_ADMIN=true
ME_CONFIG_MONGODB_ADMINUSERNAME=admin
ME_CONFIG_MONGODB_ADMINPASSWORD=guest
ME_CONFIG_MONGODB_AUTH_DATABASE=db
ME_CONFIG_MONGODB_AUTH_USERNAME=user
ME_CONFIG_MONGODB_AUTH_PASSWORD=guest
ME_CONFIG_SITE_BASEURL=/

#ME_CONFIG_SITE_COOKIESECRET=cookiesecret

#ME_CONFIG_SITE_SESSIONSECRET=sessionsecret
ME_CONFIG_BASICAUTH_USERNAME=guest
ME_CONFIG_BASICAUTH_PASSWORD=guest
ME_CONFIG_REQUEST_SIZE=100kb
ME_CONFIG_OPTIONS_EDITORTHEME=rubyblue

#ME_CONFIG_SITE_SSL_ENABLED=false

#ME_CONFIG_SITE_SSL_CRT_PATH=

#ME_CONFIG_SITE_SSL_KEY_PATH=

VCAP_APP_HOST=0.0.0.0
VCAP_APP_PORT=8081


Docker Pull Command
Owner
yunghoy
Source Repository

Comments (0)