seaweedfs-compose.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. command: 'volume -max=15 -mserver="master:9333" -port=8080'
  15. depends_on:
  16. - master
  17. filer:
  18. image: chrislusf/seaweedfs # use a remote image
  19. ports:
  20. - 8888:8888
  21. - 18888:18888
  22. command: 'filer -master="master:9333"'
  23. tty: true
  24. stdin_open: true
  25. depends_on:
  26. - master
  27. - volume
  28. cronjob:
  29. image: chrislusf/seaweedfs # use a remote image
  30. command: 'cronjob'
  31. environment:
  32. # Run re-replication every 2 minutes
  33. CRON_SCHEDULE: '*/2 * * * * *' # Default: '*/5 * * * * *'
  34. WEED_MASTER: master:9333 # Default: localhost:9333
  35. depends_on:
  36. - master
  37. - volume
  38. s3:
  39. image: chrislusf/seaweedfs # use a remote image
  40. ports:
  41. - 8333:8333
  42. command: 's3 -filer="filer:8888"'
  43. depends_on:
  44. - master
  45. - volume
  46. - filer