docker-compose.yaml 585 B

12345678910111213141516171819202122232425262728
  1. version: '3.8'
  2. # 网络
  3. # networks:
  4. # default:
  5. # external:
  6. # name: default-network # 与需要备份的mongo在同一个网络
  7. services:
  8. # mgob
  9. mgob:
  10. image: stefanprodan/mgob:1.1
  11. container_name: mongo-backup
  12. restart: always
  13. links:
  14. - 3dshow-mongo
  15. - box-mongo
  16. - cloud-mongo
  17. - comm-mongo-alpha
  18. - tree-mongo
  19. - sku3d-mongo
  20. ports:
  21. - 8090:8090
  22. volumes:
  23. - ./config:/config
  24. - ~/data/mongobackupdata/storage:/storage
  25. - ~/data/mongobackupdata/tmp:/tmp
  26. - ~/data/mongobackupdata/data:/data