Last active
March 11, 2023 15:53
-
-
Save jerlyrosa/b0e44c25900ff5976a51e65731ad5ad0 to your computer and use it in GitHub Desktop.
Mongo Local
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.7' | |
services: | |
mongodb_container: | |
image: mongo:latest | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: password | |
ports: | |
- 27017:27017 | |
volumes: | |
- ./mongodb_data_container:/data/db | |
volumes: | |
mongodb_data_container: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment