seaweedfs-compose.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. cronjob:
  31. image: chrislusf/seaweedfs # use a remote image
  32. command: 'cronjob'
  33. environment:
  34. # Run re-replication every 2 minutes
  35. CRON_SCHEDULE: '*/2 * * * * *' # Default: '*/5 * * * * *'
  36. WEED_MASTER: master:9333 # Default: localhost:9333
  37. depends_on:
  38. - master
  39. - volume
  40. s3:
  41. image: chrislusf/seaweedfs # use a remote image
  42. ports:
  43. - 8333:8333
  44. - 9327:9327
  45. command: 's3 -filer="filer:8888" -metricsPort=9327'
  46. depends_on:
  47. - master
  48. - volume
  49. - filer
  50. prometheus:
  51. image: prom/prometheus:v2.21.0
  52. ports:
  53. - 9000:9090
  54. volumes:
  55. - ./prometheus:/etc/prometheus
  56. command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
  57. depends_on:
  58. - s3