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.

53 lines
1.3 KiB

  1. version: '2'
  2. services:
  3. master0:
  4. image: chrislusf/seaweedfs:local
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. command: "master -ip=master0 -port=9333 -peers=master0:9333,master1:9334,master2:9335 -mdir=/data/m1"
  9. master1:
  10. image: chrislusf/seaweedfs:local
  11. ports:
  12. - 9334:9334
  13. - 19334:19334
  14. command: "master -ip=master1 -port=9334 -peers=master0:9333,master1:9334,master2:9335 -mdir=/data/m2"
  15. master2:
  16. image: chrislusf/seaweedfs:local
  17. ports:
  18. - 9335:9335
  19. - 19335:19335
  20. command: "master -ip=master2 -port=9335 -peers=master0:9333,master1:9334,master2:9335 -mdir=/data/m3"
  21. volume:
  22. image: chrislusf/seaweedfs:local
  23. ports:
  24. - 8080:8080
  25. - 18080:18080
  26. command: 'volume -mserver="master0:9333,master1:9334,master2:9335" -port=8080 -ip=volume -publicUrl=localhost:8080'
  27. depends_on:
  28. - master0
  29. - master1
  30. - master2
  31. filer:
  32. image: chrislusf/seaweedfs:local
  33. ports:
  34. - 8888:8888
  35. - 18888:18888
  36. command: 'filer -master="master0:9333,master1:9334,master2:9335"'
  37. depends_on:
  38. - master0
  39. - master1
  40. - master2
  41. - volume
  42. s3:
  43. image: chrislusf/seaweedfs:local
  44. ports:
  45. - 8333:8333
  46. command: 's3 -filer="filer:8888"'
  47. depends_on:
  48. - master0
  49. - master1
  50. - master2
  51. - volume
  52. - filer