test-etcd-filer.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. version: '3.9'
  2. services:
  3. etcd:
  4. image: quay.io/coreos/etcd:v3.5.4
  5. command: "etcd --advertise-client-urls http://etcd:2379 --listen-client-urls http://0.0.0.0:2379"
  6. ports:
  7. - 2379:2379
  8. master:
  9. image: chrislusf/seaweedfs:local
  10. ports:
  11. - 9333:9333
  12. - 19333:19333
  13. command: "master -ip=master -volumeSizeLimitMB=1024"
  14. volume:
  15. image: chrislusf/seaweedfs:local
  16. ports:
  17. - 8080:8080
  18. - 18080:18080
  19. command: "volume -mserver=master:9333 -port=8080 -ip=volume -max=0 -preStopSeconds=1"
  20. depends_on:
  21. - master
  22. s3:
  23. image: chrislusf/seaweedfs:local
  24. ports:
  25. - 8888:8888
  26. - 18888:18888
  27. - 8333:8333
  28. command: '-v 9 filer -master="master:9333" -s3 -s3.config=/etc/seaweedfs/s3.json -s3.port=8333'
  29. environment:
  30. WEED_LEVELDB2_ENABLED: 'false'
  31. WEED_ETCD_ENABLED: 'true'
  32. WEED_ETCD_SERVERS: "http://etcd:2379"
  33. volumes:
  34. - ./s3.json:/etc/seaweedfs/s3.json
  35. depends_on:
  36. - etcd
  37. - master
  38. - volume
  39. registry:
  40. image: registry:2
  41. environment:
  42. REGISTRY_HTTP_ADDR: "0.0.0.0:5001" # seaweedfs s3
  43. REGISTRY_LOG_LEVEL: "debug"
  44. REGISTRY_STORAGE: "s3"
  45. REGISTRY_STORAGE_S3_REGION: "us-east-1"
  46. REGISTRY_STORAGE_S3_REGIONENDPOINT: "http://s3:8333"
  47. REGISTRY_STORAGE_S3_BUCKET: "registry"
  48. REGISTRY_STORAGE_S3_ACCESSKEY: "some_access_key1"
  49. REGISTRY_STORAGE_S3_SECRETKEY: "some_secret_key1"
  50. REGISTRY_STORAGE_S3_V4AUTH: "true"
  51. REGISTRY_STORAGE_S3_SECURE: "false"
  52. REGISTRY_STORAGE_S3_SKIPVERIFY: "true"
  53. REGISTRY_STORAGE_S3_ROOTDIRECTORY: "/"
  54. REGISTRY_STORAGE_DELETE_ENABLED: "true"
  55. REGISTRY_STORAGE_REDIRECT_DISABLE: "true"
  56. REGISTRY_VALIDATION_DISABLED: "true"
  57. ports:
  58. - 5001:5001
  59. depends_on:
  60. - s3