local-mq-test.yml 694 B

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