Skip to content

Instantly share code, notes, and snippets.

@n1crack
Last active May 6, 2021 09:58
Show Gist options
  • Save n1crack/1772696130c03623f9bc699b189cad6e to your computer and use it in GitHub Desktop.
Save n1crack/1772696130c03623f9bc699b189cad6e to your computer and use it in GitHub Desktop.
quick mongo test / docker
# create new network
docker network create my-net
# run mongo
docker run -d --name some-mongo --network my-net mongo
# run mongo express
docker run -d --network my-net -e ME_CONFIG_MONGODB_SERVER=some-mongo -p 8081:8081 mongo-express
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment