local-mq-test.yml 851 B

1234567891011121314151617181920212223242526272829303132
  1. services:
  2. server:
  3. image: chrislusf/seaweedfs:local
  4. ports:
  5. - 9333:9333
  6. - 19333:19333
  7. - 8888:8888
  8. - 18888:18888
  9. command: "server -ip=server -filer -volume.max=0 -master.volumeSizeLimitMB=8 -volume.preStopSeconds=1"
  10. healthcheck:
  11. test: curl -f http://localhost:8888/healthz
  12. mq_broker:
  13. image: chrislusf/seaweedfs:local
  14. ports:
  15. - 17777:17777
  16. command: "mq.broker -master=server:9333 -ip=mq_broker"
  17. depends_on:
  18. server:
  19. condition: service_healthy
  20. mq_agent:
  21. image: chrislusf/seaweedfs:local
  22. ports:
  23. - 16777:16777
  24. command: "mq.agent -broker=mq_broker:17777 -port=16777"
  25. depends_on:
  26. - mq_broker
  27. mq_client:
  28. image: chrislusf/seaweedfs:local
  29. # run a custom command instead of entrypoint
  30. command: "ls -al"
  31. depends_on:
  32. - mq_agent