Created
May 12, 2020 10:16
-
-
Save KristofferRisa/79d43dfb5ab4f8db4ee5cd8ae51aae21 to your computer and use it in GitHub Desktop.
docker-compose mongodb
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.7' | |
services: | |
mongodb_container: | |
image: mongo:latest | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: user | |
MONGO_INITDB_ROOT_PASSWORD: supersecretpassword | |
ports: | |
- 27017:27017 | |
volumes: | |
- ./data/mongodb:/data/db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment