local-cluster-compose.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. volume1:
  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=volume1 -publicUrl=localhost:8080 -preStopSeconds=1 -disk=ssd1'
  27. depends_on:
  28. - master0
  29. - master1
  30. - master2
  31. volume2:
  32. image: chrislusf/seaweedfs:local
  33. ports:
  34. - 8082:8082
  35. - 18082:18082
  36. command: 'volume -mserver="master0:9333,master1:9334,master2:9335" -port=8082 -ip=volume2 -publicUrl=localhost:8082 -preStopSeconds=1 -disk=ssd1'
  37. depends_on:
  38. - master0
  39. - master1
  40. - master2
  41. volume3:
  42. image: chrislusf/seaweedfs:local
  43. ports:
  44. - 8083:8083
  45. - 18083:18083
  46. command: 'volume -mserver="master0:9333,master1:9334,master2:9335" -port=8083 -ip=volume3 -publicUrl=localhost:8083 -preStopSeconds=1'
  47. depends_on:
  48. - master0
  49. - master1
  50. - master2
  51. filer:
  52. image: chrislusf/seaweedfs:local
  53. ports:
  54. - 8888:8888
  55. - 18888:18888
  56. command: 'filer -master="master0:9333,master1:9334,master2:9335"'
  57. depends_on:
  58. - master0
  59. - master1
  60. - master2
  61. - volume1
  62. - volume2
  63. s3:
  64. image: chrislusf/seaweedfs:local
  65. ports:
  66. - 8333:8333
  67. command: 's3 -filer="filer:8888"'
  68. depends_on:
  69. - master0
  70. - master1
  71. - master2
  72. - volume1
  73. - volume2
  74. - filer