查看“Docker mongo”的源代码
←
Docker mongo
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
Note 还不够完善哦 =install = <pre> #Sep 23 2021 vi docker-compose.yml version: "3.1" services: mongodb: image: mongo:4.2 container_name: mongodb4.2 ports: - "27018:27017" #- "27017-27019:27017-27019" volumes: #- /Users/Pie/docker-lnmp/conf/mongodb/:/etc/mongo/:rw - ./mongodb/config/:/etc/mongo/ #- ./mongodb/config/mongod.conf:/etc/mongo/mongod.conf - /data/db_data/mongodb/:/data/db/:rw #- /data/db_data/mongodb/:/var/lib/mongo/:rw - /data/log/mongodb/:/var/log/mongodb/:rw environment: #设置后台登录用户和密码,没设置默认为:guest/guest MONGO_INITDB_ROOT_USERNAME: "root" MONGO_INITDB_ROOT_PASSWORD: example36 TZ: "Asia/Shanghai" restart: always command: --config /etc/mongo/mongod.conf networks: - default err mongodb4.2 | 2021-09-23T10:33:04.391+0800 F CONTROL [main] Failed global initialization: FileNotOpen: Failed to open "/var/log/mongodb/mongod.log" chmod -R 0777 /data/log/mongodb/ cat docker-compose.yml version: "3" services: mongodb: image: mongo:4.2 container_name: mongodb4.2 ports: - "27017-27019:27017-27019" volumes: # - /Users/Pie/docker-lnmp/conf/mongodb/:/etc/mongo/:rw - /data/db_data/mongodb/:/data/db/:rw - /data/log/mongodb/:/var/log/mongodb/:rw environment: #设置后台登录用户和密码,没设置默认为:guest/guest MONGO_INITDB_ROOT_USERNAME: "root" MONGO_INITDB_ROOT_PASSWORD: example36 TZ: "Asia/Shanghai" restart: always networks: - default </pre> [https://juejin.cn/post/6981423847819968543 使用 Docker Compose 安装 MongoDB ] [https://linuxhint.com/docker_compose_mongodb/ Docker-Compose MongoDB] [https://www.jianshu.com/p/e48cbdd22d0e docker-compose安装mongodb说明] [https://www.jianshu.com/p/e48f0ec7a322 docker-compose 安装mongo] [https://www.jianshu.com/p/2181b2e27021 Docker版MongoDB的安装] [https://blog.igevin.info/posts/docker-mongo-auth/ 基于Docker的MongoDB实现授权访问] [https://brickyang.github.io/2017/03/15/%E5%88%A9%E7%94%A8-Docker-%E8%BF%90%E8%A1%8C-MongoDB/ 利用 Docker 运行 MongoDB] [https://www.fanhaobai.com/2017/01/mongo-docker-install.html MongoDB在Docker中的部署] [https://yeasy.gitbooks.io/docker_practice/appendix/repo/mongodb.html MongoDB] [https://www.jianshu.com/p/5e6030e73718 MongoDB基本使用] [http://www.runoob.com/mongodb/mongodb-tutorial.html MongoDB 教程] [https://www.w3cschool.cn/mongodb/ MongoDB教程] [https://segmentfault.com/a/1190000012088118#articleHeader16 安装和使用MongoDB] [https://juejin.im/post/5a6aa6a5f265da3e4b76fd65 手把手教你 MongoDB 的安装与详细使用] [http://www.runoob.com/docker/docker-install-mongodb.html Docker 安装 MongoDB] [https://www.cxyzjd.com/article/qq_35868811/106398578 docker-compose 搭建 mongo+mongo-express] =see also= [https://blog.csdn.net/shenchen8274/article/details/119759866 docker-compose部署mongodb集群] =on pi3= https://github.com/matteoredaelli/docker-mongodb-rpi [https://www.jianshu.com/p/a3de04b49ea4 树莓派3B 使用 Docker 安装 MongoDB] [http://sillycat.iteye.com/blog/2320436 MongoDB Docker and Raspberry Pi] [[category:nosql]] [[category:devops]]
返回至
Docker mongo
。
导航菜单
个人工具
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
我的导航
关于我
shell
python
ops
linuxchina.net
blog.linuxchina
最近更改
随机页面
帮助
工具
链入页面
相关更改
特殊页面
页面信息