Created
November 17, 2018 16:48
-
-
Save Colour-Full/a26ad2e50d27d1036ec92ac8944cf6ff to your computer and use it in GitHub Desktop.
Mongo Docker Compose File
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: always | |
environment: | |
- MONGO_INITDB_DATABASE=compose | |
volumes: | |
- ./deployment/data/db:/data/db | |
- ./deployment/dev/create-dev-db.js:/docker-entrypoint-initdb.d/create-dev-db.js | |
ports: | |
- 27027:27017 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment