Created
September 22, 2025 03:29
-
-
Save ramosmerino/cd8e6ffcae3419709ccb1a2b8e40918b to your computer and use it in GitHub Desktop.
Mongo docker-compose
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.8' | |
| services: | |
| mongodb: | |
| image: mongodb/mongodb-community-server:6.0-ubi8 | |
| environment: | |
| - MONGO_INITDB_ROOT_USERNAME=user | |
| - MONGO_INITDB_ROOT_PASSWORD=pass | |
| volumes: | |
| - type: bind | |
| source: ./data | |
| target: /data/db | |
| ports: | |
| - "27017:27017" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment