Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mongo and mongo-express local dev setup, for meteor
#!/usr/bin/env bash
docker stop mongo-server
docker rm mongo-server
#start meteor with env variable MONGO_URL=mongodb://localhost:27017/yourDatabase
#meteor /db/ path is in .meteor/local/db/
docker run --name mongo-server -it -d \
-v /var/www/mongoData:/data/db \
--net="host" \
--restart=always mongo:3.4.3
docker stop mongo-express
docker rm mongo-express
#simple admin web UI https://github.com/glittershark/meteor-express
#listens on 0:0:0:0:8081
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="27017" \
-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
You can’t perform that action at this time.