mongodb
docker run -d \
--name mongodb \
--restart always \
-e MONGO_INITDB_ROOT_USERNAME=mongoadmin \
-e MONGO_INITDB_ROOT_PASSWORD=123456 \
-p 27017:27017 \
mongo:4.4.18
连接串
mongodb://mongoadmin:[email protected]:27017/?maxPoolSize=20&w=majority
标签:MONGO,mongodb,27017,Docker,123456,ROOT
From: https://www.cnblogs.com/greene/p/17020435.html