local-filer-backup-compose.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. version: '3.9'
  2. services:
  3. server-left:
  4. image: chrislusf/seaweedfs:local
  5. command: "-v=0 server -ip=server-left -filer -filer.maxMB 5 -s3 -s3.config=/etc/seaweedfs/s3.json -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1"
  6. volumes:
  7. - ./s3.json:/etc/seaweedfs/s3.json
  8. healthcheck:
  9. test: [ "CMD", "curl", "--fail", "-I", "http://localhost:9333/cluster/healthz" ]
  10. interval: 3s
  11. start_period: 15s
  12. timeout: 30s
  13. server-right:
  14. image: chrislusf/seaweedfs:local
  15. command: "-v=0 server -ip=server-right -filer -filer.maxMB 64 -s3 -s3.config=/etc/seaweedfs/s3.json -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1"
  16. volumes:
  17. - ./s3.json:/etc/seaweedfs/s3.json
  18. healthcheck:
  19. test: [ "CMD", "curl", "--fail", "-I", "http://localhost:9333/cluster/healthz" ]
  20. interval: 3s
  21. start_period: 15s
  22. timeout: 30s
  23. filer-backup:
  24. image: chrislusf/seaweedfs:local
  25. command: "-v=0 filer.backup -debug -doDeleteFiles=False -filer server-left:8888"
  26. volumes:
  27. - ./replication.toml:/etc/seaweedfs/replication.toml
  28. environment:
  29. WEED_SINK_LOCAL_INCREMENTAL_ENABLED: "false"
  30. WEED_SINK_S3_ENABLED: "true"
  31. WEED_SINK_S3_BUCKET: "backup"
  32. WEED_SINK_S3_ENDPOINT: "http://server-right:8333"
  33. WEED_SINK_S3_DIRECTORY: "/"
  34. WEED_SINK_S3_AWS_ACCESS_KEY_ID: "some_access_key1"
  35. WEED_SINK_S3_AWS_SECRET_ACCESS_KEY: "some_secret_key1"
  36. WEED_SINK_S3_S3_DISABLE_CONTENT_MD5_VALIDATION: "false"
  37. WEED_SINK_S3_UPLOADER_PART_SIZE_MB: "5"
  38. WEED_SINK_S3_KEEP_PART_SIZE: "false"
  39. depends_on:
  40. server-left:
  41. condition: service_healthy
  42. server-right:
  43. condition: service_healthy
  44. minio-warp:
  45. image: minio/warp
  46. command: 'mixed --duration 5s --obj.size=6mb --md5 --objects 10 --concurrent 2'
  47. restart: on-failure
  48. environment:
  49. WARP_HOST: "server-left:8333"
  50. WARP_ACCESS_KEY: "some_access_key1"
  51. WARP_SECRET_KEY: "some_secret_key1"
  52. depends_on:
  53. - filer-backup