DB/기본 실습

[DB] MongoDB Docker + Robo3T 셋팅

yubi5050 2022. 11. 13. 05:00

MongoDB , Robo3T 

👉 MongoDB - 대표적인 NoSQL DB (링크)

 

MongoDB Atlas: Cloud Document Database

Cloud-hosted MongoDB service on AWS, Azure, and GCP

www.mongodb.com

 

👉 Robo3T - MongoDB DBMS Tool (링크)

 

Robo 3T | Free, open-source MongoDB GUI (formerly Robomongo)

Read by Dmitry Schetnikovich

robomongo.org

 

 

MongoDB Docker 명령어

# VOLUME 위치, USERNAME PASSWORD 임의 설정하기
$ docker run --name mongodb-container -v <YOUR VOLUME PATH>:/data/db -d -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=<YOUR USERNMAE> -e MONGO_INITDB_ROOT_PASSWORD=<YOUR_PASSWORD> mongo

# docker run --name mongodb-container -v /C/Users/urse/docker-mongodb:/data/db -d -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=smkim -e MONGO_INITDB_ROOT_PASSWORD=smkim mongo

 

Robo3T 설정

Address : localhost

Port : 27017

Authentication - database : admin

Authentication - username : smkim

Authentication - password : smkim