Skip to content

Latest commit

 

History

History

mongodb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

MongoDB

MongoDB database with Docker Compose configuration and web UI.

Specifications

  • Version: 5.0
  • Port: 27017 (exposed on host)
  • Default Credentials:
    • Username: root
    • Password: 12345678
  • MongoDB Express UI:

Quick Start

# Using docker-compose directly
cd mongodb
docker-compose up -d

# Or using the main script
./devtools.sh up mongodb

Connect to MongoDB

# Connect using mongosh client
mongosh mongodb://root:12345678@localhost:27017/

# Or use the MongoDB Express UI at http://localhost:8081

Data Persistence

Data is persisted in a Docker volume named mongo-data. This ensures your data is not lost when the container is stopped or removed.

References