Skip to content

Instantly share code, notes, and snippets.

@PatrickKalkman
Created January 10, 2020 08:35
Show Gist options
  • Save PatrickKalkman/5f0380cd901ecdd7e48bf86a7a3e41ea to your computer and use it in GitHub Desktop.
Save PatrickKalkman/5f0380cd901ecdd7e48bf86a7a3e41ea to your computer and use it in GitHub Desktop.
Docker Compose file for MongoDB
version: '2'
services:
workflowdb:
image: 'mongo:4.0.14'
container_name: 'workflow-db'
environment:
- MONGO_INITDB_ROOT_USERNAME=mveroot
- MONGO_INITDB_ROOT_PASSWORD=2020minivideoencoder!
- MONGO_INITDB_DATABASE=workflow-db
volumes:
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- ./data/workflow-db.db:/data.db
ports:
- '27017:27017'
networks:
- mve-network
networks:
mve-network:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment