local-sync-mount-compose.yml 622 B

123456789101112131415161718192021
  1. version: '3.9'
  2. services:
  3. node1:
  4. image: chrislusf/seaweedfs:local
  5. command: "server -master -volume -filer"
  6. mount1:
  7. image: chrislusf/seaweedfs:local
  8. privileged: true
  9. command: "mount -filer=node1:8888 -dir=/mnt -dirAutoCreate"
  10. node2:
  11. image: chrislusf/seaweedfs:local
  12. ports:
  13. - 7888:8888
  14. command: "server -master -volume -filer"
  15. mount2:
  16. image: chrislusf/seaweedfs:local
  17. privileged: true
  18. command: "mount -filer=node2:8888 -dir=/mnt -dirAutoCreate"
  19. sync:
  20. image: chrislusf/seaweedfs:local
  21. command: "-v=4 filer.sync -a=node1:8888 -b=node2:8888 -a.debug -b.debug"