local-mount-compose.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. version: '3.9'
  2. services:
  3. master:
  4. image: chrislusf/seaweedfs:local
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. command: "master -ip=master"
  9. volume:
  10. image: chrislusf/seaweedfs:local
  11. ports:
  12. - 7455:8080
  13. - 9325:9325
  14. command: 'volume -mserver="master:9333" -port=8080 -metricsPort=9325 -preStopSeconds=1 -publicUrl=localhost:7455'
  15. depends_on:
  16. - master
  17. filer:
  18. image: chrislusf/seaweedfs:local
  19. ports:
  20. - 8888:8888
  21. - 18888:18888
  22. - 9326:9326
  23. command: 'filer -master="master:9333" -metricsPort=9326'
  24. tty: true
  25. stdin_open: true
  26. depends_on:
  27. - master
  28. - volume
  29. mount_1:
  30. image: chrislusf/seaweedfs:local
  31. privileged: true
  32. entrypoint: '/bin/sh -c "mkdir -p t1 && mkdir -p cache/t1 && weed -v=4 mount -filer=filer:8888 -cacheDir=./cache/t1 -dir=./t1 -filer.path=/c1 -volumeServerAccess=filerProxy"'
  33. depends_on:
  34. - master
  35. - volume
  36. - filer
  37. mount_2:
  38. image: chrislusf/seaweedfs:local
  39. privileged: true
  40. entrypoint: '/bin/sh -c "mkdir -p t2 && mkdir -p cache/t2 && weed -v=4 mount -filer=filer:8888 -cacheDir=./cache/t2 -dir=./t2 -filer.path=/c1"'
  41. depends_on:
  42. - master
  43. - volume
  44. - filer
  45. - mount_1