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.

126 lines
3.6 KiB

11 months ago
9 months ago
11 months ago
9 months ago
11 months ago
9 months ago
11 months ago
  1. version: '3.9'
  2. services:
  3. master0:
  4. image: chrislusf/seaweedfs:local
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. command: "-v=0 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=0 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=0 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. filer1:
  64. image: chrislusf/seaweedfs:local
  65. ports:
  66. - 8888:8888
  67. - 18888:18888
  68. command: 'filer -defaultReplicaPlacement=100 -iam -master="master0:9333,master1:9334,master2:9335" -port=8888 -ip=filer1'
  69. depends_on:
  70. - master0
  71. - master1
  72. - master2
  73. - volume1
  74. - volume2
  75. filer2:
  76. image: chrislusf/seaweedfs:local
  77. ports:
  78. - 8889:8889
  79. - 18889:18889
  80. command: 'filer -defaultReplicaPlacement=100 -iam -master="master0:9333,master1:9334,master2:9335" -port=8889 -ip=filer2'
  81. depends_on:
  82. - master0
  83. - master1
  84. - master2
  85. - volume1
  86. - volume2
  87. broker1:
  88. image: chrislusf/seaweedfs:local
  89. ports:
  90. - 17777:17777
  91. command: 'mq.broker -master="master0:9333,master1:9334,master2:9335" -port=17777 -ip=broker1'
  92. depends_on:
  93. - master0
  94. - master1
  95. - master2
  96. - volume1
  97. - volume2
  98. - filer1
  99. - filer2
  100. broker2:
  101. image: chrislusf/seaweedfs:local
  102. ports:
  103. - 17778:17778
  104. command: 'mq.broker -master="master0:9333,master1:9334,master2:9335" -port=17778 -ip=broker2'
  105. depends_on:
  106. - master0
  107. - master1
  108. - master2
  109. - volume1
  110. - volume2
  111. - filer1
  112. - filer2
  113. broker3:
  114. image: chrislusf/seaweedfs:local
  115. ports:
  116. - 17779:17779
  117. command: 'mq.broker -master="master0:9333,master1:9334,master2:9335" -port=17779 -ip=broker3'
  118. depends_on:
  119. - master0
  120. - master1
  121. - master2
  122. - volume1
  123. - volume2
  124. - filer1
  125. - filer2