Skip to content

Instantly share code, notes, and snippets.

@gigabyteservice
Last active January 14, 2023 18:30
Show Gist options
  • Save gigabyteservice/e0537a7f95175103eceb6f95f6b2314b to your computer and use it in GitHub Desktop.
Save gigabyteservice/e0537a7f95175103eceb6f95f6b2314b to your computer and use it in GitHub Desktop.
docker-compose.yml
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