Created
January 17, 2019 01:03
-
-
Save matheuschimelli/ed22af55060eb77c278dd1d9ad8bdc5d to your computer and use it in GitHub Desktop.
MongoDB docker-compose file persistent storage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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