local-cluster-compose.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. version: '3.9'
  2. services:
  3. master0:
  4. image: chrislusf/seaweedfs:local
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. command: "-v=1 master -volumeSizeLimitMB 100 -resumeState=false -ip=master0 -port=9333 -peers=master0:9333,master1:9334,master2:9335 -mdir=/tmp"
  9. environment:
  10. WEED_MASTER_VOLUME_GROWTH_COPY_1: 1
  11. WEED_MASTER_VOLUME_GROWTH_COPY_2: 2
  12. WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
  13. master1:
  14. image: chrislusf/seaweedfs:local
  15. ports:
  16. - 9334:9334
  17. - 19334:19334
  18. command: "-v=1 master -volumeSizeLimitMB 100 -resumeState=false -ip=master1 -port=9334 -peers=master0:9333,master1:9334,master2:9335 -mdir=/tmp"
  19. environment:
  20. WEED_MASTER_VOLUME_GROWTH_COPY_1: 1
  21. WEED_MASTER_VOLUME_GROWTH_COPY_2: 2
  22. WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
  23. master2:
  24. image: chrislusf/seaweedfs:local
  25. ports:
  26. - 9335:9335
  27. - 19335:19335
  28. command: "-v=1 master -volumeSizeLimitMB 100 -resumeState=false -ip=master2 -port=9335 -peers=master0:9333,master1:9334,master2:9335 -mdir=/tmp"
  29. environment:
  30. WEED_MASTER_VOLUME_GROWTH_COPY_1: 1
  31. WEED_MASTER_VOLUME_GROWTH_COPY_2: 2
  32. WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
  33. volume1:
  34. image: chrislusf/seaweedfs:local
  35. ports:
  36. - 8080:8080
  37. - 18080:18080
  38. command: 'volume -dataCenter=dc1 -rack=v1 -mserver="master0:9333,master1:9334,master2:9335" -port=8080 -ip=volume1 -publicUrl=localhost:8080 -preStopSeconds=1'
  39. depends_on:
  40. - master0
  41. - master1
  42. - master2
  43. volume2:
  44. image: chrislusf/seaweedfs:local
  45. ports:
  46. - 8082:8082
  47. - 18082:18082
  48. command: 'volume -dataCenter=dc2 -rack=v2 -mserver="master0:9333,master1:9334,master2:9335" -port=8082 -ip=volume2 -publicUrl=localhost:8082 -preStopSeconds=1'
  49. depends_on:
  50. - master0
  51. - master1
  52. - master2
  53. volume3:
  54. image: chrislusf/seaweedfs:local
  55. ports:
  56. - 8083:8083
  57. - 18083:18083
  58. command: 'volume -dataCenter=dc3 -rack=v3 -mserver="master0:9333,master1:9334,master2:9335" -port=8083 -ip=volume3 -publicUrl=localhost:8083 -preStopSeconds=1'
  59. depends_on:
  60. - master0
  61. - master1
  62. - master2
  63. filer:
  64. image: chrislusf/seaweedfs:local
  65. ports:
  66. - 8888:8888
  67. - 18888:18888
  68. - 8111:8111
  69. command: 'filer -defaultReplicaPlacement=100 -iam -master="master0:9333,master1:9334,master2:9335"'
  70. depends_on:
  71. - master0
  72. - master1
  73. - master2
  74. - volume1
  75. - volume2
  76. s3:
  77. image: chrislusf/seaweedfs:local
  78. ports:
  79. - 8333:8333
  80. command: '-v=9 s3 -filer="filer:8888"'
  81. depends_on:
  82. - master0
  83. - master1
  84. - master2
  85. - volume1
  86. - volume2
  87. - filer