e2e-mount.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. version: '3.9'
  2. services:
  3. master:
  4. image: chrislusf/seaweedfs:e2e
  5. command: "-v=4 master -ip=master -ip.bind=0.0.0.0 -raftBootstrap"
  6. healthcheck:
  7. test: [ "CMD", "curl", "--fail", "-I", "http://localhost:9333/cluster/healthz" ]
  8. interval: 2s
  9. timeout: 10s
  10. retries: 30
  11. start_period: 10s
  12. volume:
  13. image: chrislusf/seaweedfs:e2e
  14. command: "-v=4 volume -mserver=master:9333 -ip=volume -ip.bind=0.0.0.0 -preStopSeconds=1"
  15. healthcheck:
  16. test: [ "CMD", "curl", "--fail", "-I", "http://localhost:8080/healthz" ]
  17. interval: 2s
  18. timeout: 10s
  19. retries: 15
  20. start_period: 5s
  21. depends_on:
  22. master:
  23. condition: service_healthy
  24. filer:
  25. image: chrislusf/seaweedfs:e2e
  26. command: "-v=4 filer -master=master:9333 -ip=filer -ip.bind=0.0.0.0"
  27. healthcheck:
  28. test: [ "CMD", "curl", "--fail", "-I", "http://localhost:8888" ]
  29. interval: 2s
  30. timeout: 10s
  31. retries: 15
  32. start_period: 5s
  33. depends_on:
  34. volume:
  35. condition: service_healthy
  36. mount:
  37. image: chrislusf/seaweedfs:e2e
  38. command: "-v=4 mount -filer=filer:8888 -filer.path=/ -dirAutoCreate -dir=/mnt/seaweedfs"
  39. cap_add:
  40. - SYS_ADMIN
  41. devices:
  42. - /dev/fuse
  43. security_opt:
  44. - apparmor:unconfined
  45. deploy:
  46. resources:
  47. limits:
  48. memory: 4096m
  49. healthcheck:
  50. test: [ "CMD", "mountpoint", "-q", "--", "/mnt/seaweedfs" ]
  51. interval: 2s
  52. timeout: 10s
  53. retries: 15
  54. start_period: 10s
  55. depends_on:
  56. filer:
  57. condition: service_healthy