Created
March 26, 2026 11:57
-
-
Save av1v3k/1eda40c30b3b72561f86374863bf8ce9 to your computer and use it in GitHub Desktop.
Docker compose file for spinning 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
| services: | |
| mongodb: | |
| image: mongo:latest | |
| container_name: local-mongodb | |
| restart: always | |
| ports: | |
| - "27017:27017" | |
| environment: | |
| MONGO_INITDB_ROOT_USERNAME: admin | |
| MONGO_INITDB_ROOT_PASSWORD: password123 | |
| volumes: | |
| - mongo-data:/data/db | |
| volumes: | |
| mongo-data: | |
| driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment