Created
December 6, 2017 11:24
-
-
Save floweb/55290599e2b1d75b7c8ab209ce51db9a to your computer and use it in GitHub Desktop.
MongoDB Docker Compose
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: | |
mongo: | |
image: mongo | |
restart: unless-stopped | |
environment: | |
- MONGO_DATA_DIR=/data/db | |
- MONGO_LOG_DIR=/dev/null | |
volumes: | |
- ./data/db:/data/db | |
ports: | |
- 27017:27017 | |
command: mongod --smallfiles --logpath=/dev/null # --quiet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment