Created
January 6, 2018 23:31
-
-
Save ashblue/aa20cd90d2b4609c0b496b66d4153b99 to your computer and use it in GitHub Desktop.
Docker Compose example for MongoDB databases. Includes named volume support.
This file contains hidden or 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: mongo:3.6.1 | |
container_name: uv-mongodb | |
volumes: | |
- mongodb:/data/db | |
- mongodb_config:/data/configdb | |
ports: | |
- 27017:27017 | |
command: mongod | |
volumes: | |
mongodb: | |
mongodb_config: |
I base on Mac, Mongo4.x
.
I can't find folder mongodb , mongodb _config
???
thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very useful for me. Tnx!