swarm-etcd.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # 2021-01-30 16:25:30
  2. version: '3.8'
  3. services:
  4. etcd:
  5. image: gasparekatapy/etcd
  6. networks:
  7. - net
  8. deploy:
  9. mode: replicated
  10. replicas: 3
  11. master:
  12. image: chrislusf/seaweedfs:local
  13. environment:
  14. WEED_MASTER_FILER_DEFAULT: "filer:8888"
  15. WEED_MASTER_SEQUENCER_TYPE: "raft"
  16. ports:
  17. - "9333:9333"
  18. - "19333:19333"
  19. networks:
  20. - net
  21. command:
  22. - 'master'
  23. - '-resumeState=true'
  24. - '-ip=master'
  25. - '-port=9333'
  26. deploy:
  27. mode: replicated
  28. replicas: 1
  29. filer:
  30. image: chrislusf/seaweedfs:local
  31. environment:
  32. WEED_LEVELDB2_ENABLED: "false"
  33. WEED_ETCD_ENABLED: "true"
  34. WEED_ETCD_SERVERS: "etcd:2379"
  35. ports:
  36. - target: 8888
  37. published: 8888
  38. protocol: tcp
  39. mode: host
  40. - target: 18888
  41. published: 18888
  42. protocol: tcp
  43. mode: host
  44. networks:
  45. - net
  46. command:
  47. - 'filer'
  48. - '-ip=filer'
  49. - '-port=8888'
  50. - '-port.readonly=28888'
  51. - '-master=master:9333'
  52. - '-disableDirListing=true'
  53. deploy:
  54. mode: replicated
  55. replicas: 1
  56. volume:
  57. image: chrislusf/seaweedfs:local
  58. ports:
  59. - target: 8080
  60. published: 8080
  61. protocol: tcp
  62. mode: host
  63. - target: 18080
  64. published: 18080
  65. protocol: tcp
  66. mode: host
  67. networks:
  68. - net
  69. command:
  70. - 'volume'
  71. - '-mserver=master:9333'
  72. - '-port=8080'
  73. deploy:
  74. mode: global
  75. ###########################################################################
  76. networks:
  77. net: