Last active
April 6, 2017 10:11
-
-
Save bgadrian/d42dc3c2a926381ba281d66c9a55cd9f to your computer and use it in GitHub Desktop.
Keep a mongo-express (similar to phpmyadmin) running to manage Meteor MongoDB
This file contains hidden or 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
#!/usr/bin/env bash | |
docker stop mongo-express | |
docker rm mongo-express | |
#accesible from a host, if is a VM :0.0.0.0 | |
#auto restarts - it will reattach at every meteor server restart | |
#requires Docker | |
#address will be localhost:8081 or http://your.VM.ip:8081/db/meteor/ | |
docker run -it --restart=always -d \ | |
--name mongo-express \ | |
--net="host" \ | |
-e ME_CONFIG_OPTIONS_EDITORTHEME="ambiance" \ | |
-e ME_CONFIG_BASICAUTH_USERNAME="" \ | |
-e ME_CONFIG_MONGODB_SERVER="127.0.0.1" \ | |
-e ME_CONFIG_MONGODB_PORT="3002" \ | |
-e ME_CONFIG_BASICAUTH_USERNAME="" \ | |
mongo-express |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment