Created
December 9, 2021 17:03
-
-
Save opchaves/0cb714f6b1cd181cca178b08934e69ed to your computer and use it in GitHub Desktop.
Using Docker and Docker Compose
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: | |
image: mongo:5 | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: root | |
ports: | |
- 27017:27017 | |
volumes: | |
- mongodb_data:/data/db | |
volumes: | |
mongodb_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment