Add Mongo webui (#1687)

* add mongo webui
* update
* Update env-example
This commit is contained in:
ahkui 2018-07-06 20:54:44 +08:00 committed by Shao Yu-Lung (Allen)
parent 6fa2b75bb7
commit 1823060c4b
3 changed files with 26 additions and 0 deletions

View File

@ -742,3 +742,20 @@ services:
- "${NETDATA_PORT}:19999" - "${NETDATA_PORT}:19999"
networks: networks:
- backend - backend
### MongoWebUI ################################################
mongo-webui:
build:
context: ./mongo-webui
environment:
- ROOT_URL=${MONGO_WEBUI_ROOT_URL}
- MONGO_URL=${MONGO_WEBUI_MONGO_URL}
- INSTALL_MONGO=${MONGO_WEBUI_INSTALL_MONGO}
volumes:
- ${DATA_PATH_HOST}/mongo-webui:/data/db
ports:
- "${MONGO_WEBUI_PORT}:3000"
networks:
- backend
depends_on:
- mongo

View File

@ -362,3 +362,9 @@ SOLR_DATAIMPORTHANDLER_MYSQL=false
### NETDATA ############################################### ### NETDATA ###############################################
NETDATA_PORT=19999 NETDATA_PORT=19999
### MONGOWEBUI ###############################################
MONGO_WEBUI_PORT=3000
MONGO_WEBUI_ROOT_URL=http://localhost
MONGO_WEBUI_MONGO_URL=mongodb://mongo:27017/
MONGO_WEBUI_INSTALL_MONGO=false

3
mongo-webui/Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM mongoclient/mongoclient
LABEL maintainer="ahkui <ahkui@outlook.com>"