Last active
March 20, 2022 22:22
-
-
Save vczb/f7e4a43555ef6c4bf3ba13ea87d984ae to your computer and use it in GitHub Desktop.
Mongo DB - Docker
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: | |
| image: mongo:4.4-bionic | |
| # restart: always | |
| container_name: mongodb | |
| environment: | |
| MONGO_INITDB_ROOT_USERNAME: admin | |
| MONGO_INITDB_ROOT_PASSWORD: mongo | |
| ports: | |
| - 27017:27017 | |
| - 28017:28017 | |
| networks: | |
| infranet: | |
| aliases: | |
| - 'mongo' | |
| networks: | |
| infranet: | |
| volumes: | |
| mongo_data: |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
set pettry as default