docker-compose.yaml 447 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. ports:
  15. - 8090:8090
  16. volumes:
  17. - ./config:/config
  18. - ~/data/mongobackupdata/storage:/storage
  19. - ~/data/mongobackupdata/tmp:/tmp
  20. - ~/data/mongobackupdata/data:/data