Skip to content

Instantly share code, notes, and snippets.

@JackyYin
Created December 23, 2019 07:34
Show Gist options
  • Select an option

  • Save JackyYin/a9e5acfecd1eb52afaee11298a53dc92 to your computer and use it in GitHub Desktop.

Select an option

Save JackyYin/a9e5acfecd1eb52afaee11298a53dc92 to your computer and use it in GitHub Desktop.
docker-compose for local mongoDB
version: '3.5'
services:
mongo:
image: mongo
ports:
- '27017:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
mongo-express:
image: mongo-express
ports:
- '27018:8081'
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment