local-replicate-compose.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. version: '3.9'
  2. services:
  3. master:
  4. image: chrislusf/seaweedfs:local
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. command: "master -ip=master"
  9. volume:
  10. image: chrislusf/seaweedfs:local
  11. ports:
  12. - 8080:8080
  13. - 18080:18080
  14. command: "volume -mserver=master:9333 -port=8080 -ip=volume -preStopSeconds=1"
  15. depends_on:
  16. - master
  17. filer:
  18. image: chrislusf/seaweedfs:local
  19. ports:
  20. - 8888:8888
  21. - 18888:18888
  22. command: '-v=9 filer -master="master:9333"'
  23. restart: on-failure
  24. volumes:
  25. - ./notification.toml:/etc/seaweedfs/notification.toml
  26. depends_on:
  27. - master
  28. - volume
  29. - rabbitmq
  30. - replicate
  31. environment:
  32. RABBIT_SERVER_URL: "amqp://guest:guest@rabbitmq:5672/"
  33. replicate:
  34. image: chrislusf/seaweedfs:local
  35. command: '-v=9 filer.replicate'
  36. restart: on-failure
  37. volumes:
  38. - ./notification.toml:/etc/seaweedfs/notification.toml
  39. - ./replication.toml:/etc/seaweedfs/replication.toml
  40. depends_on:
  41. - rabbitmq
  42. environment:
  43. RABBIT_SERVER_URL: "amqp://guest:guest@rabbitmq:5672/"
  44. s3:
  45. image: chrislusf/seaweedfs:local
  46. ports:
  47. - 8333:8333
  48. command: 's3 -filer="filer:8888"'
  49. depends_on:
  50. - master
  51. - volume
  52. - filer
  53. rabbitmq:
  54. image: rabbitmq:3.8.10-management-alpine
  55. ports:
  56. - 5672:5672
  57. - 15671:15671
  58. - 15672:15672
  59. environment:
  60. RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: "-rabbit log_levels [{connection,error},{queue,debug}]"