Skip to content

Instantly share code, notes, and snippets.

@bgadrian
Last active April 6, 2017 10:11
Show Gist options
  • Save bgadrian/d42dc3c2a926381ba281d66c9a55cd9f to your computer and use it in GitHub Desktop.
Save bgadrian/d42dc3c2a926381ba281d66c9a55cd9f to your computer and use it in GitHub Desktop.
Keep a mongo-express (similar to phpmyadmin) running to manage Meteor MongoDB
#!/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