-
-
Save thekingofbandit/78aec7842932dbcb43d65eabf034962a to your computer and use it in GitHub Desktop.
MongoDB Docker Deployment
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: | |
mongodb: | |
container_name: mongo | |
image: mongo | |
volumes: | |
- ./db_data/:/data/db/ | |
ports: | |
- 27017:27017 | |
restart: always | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: your_username | |
MONGO_INITDB_ROOT_PASSWORD: your_strong_password | |
command: --quiet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment