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.

127 lines
3.7 KiB

11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 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. - filer1
  88. broker1:
  89. image: chrislusf/seaweedfs:local
  90. ports:
  91. - 17777:17777
  92. command: 'mq.broker -master="master0:9333,master1:9334,master2:9335" -port=17777 -ip=broker1'
  93. depends_on:
  94. - master0
  95. - master1
  96. - master2
  97. - volume1
  98. - volume2
  99. - filer1
  100. - filer2
  101. broker2:
  102. image: chrislusf/seaweedfs:local
  103. ports:
  104. - 17778:17778
  105. command: 'mq.broker -master="master0:9333,master1:9334,master2:9335" -port=17778 -ip=broker2'
  106. depends_on:
  107. - master0
  108. - master1
  109. - master2
  110. - volume1
  111. - volume2
  112. - filer1
  113. - filer2
  114. broker3:
  115. image: chrislusf/seaweedfs:local
  116. ports:
  117. - 17779:17779
  118. command: 'mq.broker -master="master0:9333,master1:9334,master2:9335" -port=17779 -ip=broker3'
  119. depends_on:
  120. - master0
  121. - master1
  122. - master2
  123. - volume1
  124. - volume2
  125. - filer1
  126. - filer2