Created
November 1, 2023 14:09
-
-
Save ostermine/45ee53ac34137a65fd89393aa548bdaf to your computer and use it in GitHub Desktop.
simple mongo docker compose file
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
#ES | |
#POD'ES | |
version: '3.1' | |
services: | |
mongo: | |
image: mongo | |
restart: always | |
ports: | |
- "27017:27017" | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: root | |
volumes: | |
- ./data/db:/data/db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment