e2e-mount.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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: 1s
  9. timeout: 60s
  10. volume:
  11. image: chrislusf/seaweedfs:e2e
  12. command: "-v=4 volume -mserver=master:9333 -ip=volume -ip.bind=0.0.0.0 -preStopSeconds=1"
  13. healthcheck:
  14. test: [ "CMD", "curl", "--fail", "-I", "http://localhost:8080/healthz" ]
  15. interval: 1s
  16. timeout: 30s
  17. depends_on:
  18. master:
  19. condition: service_healthy
  20. filer:
  21. image: chrislusf/seaweedfs:e2e
  22. command: "-v=4 filer -master=master:9333 -ip=filer -ip.bind=0.0.0.0"
  23. healthcheck:
  24. test: [ "CMD", "curl", "--fail", "-I", "http://localhost:8888" ]
  25. interval: 1s
  26. timeout: 30s
  27. depends_on:
  28. volume:
  29. condition: service_healthy
  30. mount:
  31. image: chrislusf/seaweedfs:e2e
  32. command: "-v=4 mount -filer=filer:8888 -filer.path=/ -dirAutoCreate -dir=/mnt/seaweedfs"
  33. cap_add:
  34. - SYS_ADMIN
  35. devices:
  36. - /dev/fuse
  37. security_opt:
  38. - apparmor:unconfined
  39. deploy:
  40. resources:
  41. limits:
  42. memory: 4096m
  43. healthcheck:
  44. test: [ "CMD", "mountpoint", "-q", "--", "/mnt/seaweedfs" ]
  45. interval: 1s
  46. timeout: 30s
  47. depends_on:
  48. filer:
  49. condition: service_healthy