docker-compose.yaml 444 B

1234567891011121314151617181920212223
  1. version: '3.8'
  2. # 网络
  3. # 与需要备份的mongo在同一个网络
  4. networks:
  5. default:
  6. name: default-network
  7. external: true
  8. services:
  9. # mgob
  10. mgob:
  11. image: stefanprodan/mgob:1.1
  12. container_name: mongo-backup
  13. restart: always
  14. volumes:
  15. - ./config:/config
  16. - /data/mongobackupdata/storage:/storage
  17. - /data/mongobackupdata/tmp:/tmp
  18. - /data/mongobackupdata/data:/data
  19. ports:
  20. - 8090:8090