Last active
November 20, 2022 21:38
-
-
Save stivenramireza/3bf5d83a2f2063fe2c7bad208d947488 to your computer and use it in GitHub Desktop.
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.1" | |
| services: | |
| mongo: | |
| container_name: mongo | |
| image: mongo:5 | |
| restart: always | |
| ports: | |
| - 27017:27017 | |
| networks: | |
| - mongo | |
| volumes: | |
| - mongo-data:/data/db | |
| command: mongod --ipv6 | |
| environment: | |
| MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME} | |
| MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD} | |
| MONGO_INITDB_DATABASE: ${MONGO_INITDB_DATABASE} | |
| networks: | |
| mongo: | |
| volumes: | |
| mongo-data: | |
| driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment