📌  相关文章
📜  在 ubuntu 20 上运行 mongo docker 镜像 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:39.399000             🧑  作者: Mango

代码示例1
version: "3.8"
services:
mongodb:
image : mongo
container_name: mongodb
environment:
- PUID=1000
- PGID=1000
volumes:
- /home/barry/mongodb/database:/data/db
ports:
- 27017:27017
restart: unless-stopped