seaweedfs-compose.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. version: '2'
  2. services:
  3. master:
  4. image: chrislusf/seaweedfs # use a remote image
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. command: "master -ip=master"
  9. volume:
  10. image: chrislusf/seaweedfs # use a remote image
  11. ports:
  12. - 8080:8080
  13. - 18080:18080
  14. - 9325:9325
  15. command: 'volume -mserver="master:9333" -port=8080 -metricsPort=9325'
  16. depends_on:
  17. - master
  18. filer:
  19. image: chrislusf/seaweedfs # use a remote image
  20. ports:
  21. - 8888:8888
  22. - 18888:18888
  23. - 9326:9326
  24. command: 'filer -master="master:9333" -metricsPort=9326'
  25. tty: true
  26. stdin_open: true
  27. depends_on:
  28. - master
  29. - volume
  30. s3:
  31. image: chrislusf/seaweedfs # use a remote image
  32. ports:
  33. - 8333:8333
  34. - 9327:9327
  35. command: 's3 -filer="filer:8888" -metricsPort=9327'
  36. depends_on:
  37. - master
  38. - volume
  39. - filer
  40. webdav:
  41. image: chrislusf/seaweedfs # use a remote image
  42. ports:
  43. - 7333:7333
  44. command: 'webdav -filer="filer:8888"'
  45. depends_on:
  46. - master
  47. - volume
  48. - filer
  49. prometheus:
  50. image: prom/prometheus:v2.21.0
  51. ports:
  52. - 9000:9090
  53. volumes:
  54. - ./prometheus:/etc/prometheus
  55. command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
  56. depends_on:
  57. - s3