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.

94 lines
2.7 KiB

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