Docker compose mongodb
- Docker
- Mongosh (https://www.mongodb.com/docs/mongodb-shell/install/)
# start
docker compose up -d
# stop
docker compose down
docker run --name mongodb -p 27017:27017 -d mongodb/mongodb-community-server:latest
mongosh --port 27017
mongosh --port 27017 --username <username>