Skip to content

Instantly share code, notes, and snippets.

@matheuschimelli
Created January 17, 2019 01:03
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 matheuschimelli/ed22af55060eb77c278dd1d9ad8bdc5d to your computer and use it in GitHub Desktop.
Save matheuschimelli/ed22af55060eb77c278dd1d9ad8bdc5d to your computer and use it in GitHub Desktop.
MongoDB docker-compose file persistent storage
version: '3'
services:
mongodb:
image: 'bitnami/mongodb:latest'
ports:
- "27017:27017"
volumes:
- /home/matheuschimelli7/mongodb-persistence:/bitnami
environment:
- MONGODB_ROOT_PASSWORD=mypassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment