Last active
January 14, 2023 18:30
-
-
Save gigabyteservice/e0537a7f95175103eceb6f95f6b2314b to your computer and use it in GitHub Desktop.
docker-compose.yml
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.9' | |
services: | |
mongodb: | |
# image : mongo:4.4.13 | |
image: mongo:5.0 | |
container_name: mongodb | |
ports: | |
- 27017:27017 | |
volumes: | |
- ~/apps/mongo:/data/db | |
- ~/mongod.conf:/etc/mongod.conf | |
# https://gist.github.com/gigabyteservice/a8c633aa55535b7e76e79a0703198aed | |
environment: | |
- MONGO_INITDB_ROOT_USERNAME=chellodb | |
- MONGO_INITDB_ROOT_PASSWORD=nXUS7tZJgU+EGk=~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment