Skip to content

Instantly share code, notes, and snippets.

@yogendra
Last active April 19, 2020 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogendra/28c6c9c4984bd0d4d3b7bcf603b394a9 to your computer and use it in GitHub Desktop.
Save yogendra/28c6c9c4984bd0d4d3b7bcf603b394a9 to your computer and use it in GitHub Desktop.
Scratc
docker volume create mlab-mongo
docker container run --rm --name mlab-mongo --network-alias mlab-mongo -p 27017:27017 -v mlab-mongo-data:/data/db -d mongo
docker container run --rm --name mlab -p 5000:5000 -e VCAP_SERVICES='{"mlab": ["credentials": {"uri":"mongodb://mlab-mongo:27017/mlab"}]}' -v config.py:/usr/src/app/config.py cloudgeek007/devopspipeline:6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment