You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

  1. version: '2'
  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. - 8080:8080
  13. - 18080:18080
  14. - 9325:9325
  15. command: 'volume -mserver="master:9333" -port=8080 -metricsPort=9325 -preStopSeconds=1'
  16. depends_on:
  17. - master
  18. filer:
  19. image: chrislusf/seaweedfs:local
  20. ports:
  21. - 8888:8888
  22. - 18888:18888
  23. - 9326:9326
  24. command: 'filer -master="master:9333" -metricsPort=9326'
  25. tty: true
  26. stdin_open: true
  27. depends_on:
  28. - master
  29. - volume
  30. mount_1:
  31. image: chrislusf/seaweedfs:local
  32. privileged: true
  33. 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=/"'
  34. depends_on:
  35. - master
  36. - volume
  37. - filer
  38. mount_2:
  39. image: chrislusf/seaweedfs:local
  40. privileged: true
  41. 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=/"'
  42. depends_on:
  43. - master
  44. - volume
  45. - filer
  46. - mount_1