local-registry-compose.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. version: '2'
  2. services:
  3. master:
  4. image: chrislusf/seaweedfs:local
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. command: "master -ip=master -volumeSizeLimitMB=1024"
  9. volume:
  10. image: chrislusf/seaweedfs:local
  11. ports:
  12. - 8080:8080
  13. - 18080:18080
  14. command: "volume -mserver=master:9333 -port=8080 -ip=volume -max=0 -preStopSeconds=1"
  15. depends_on:
  16. - master
  17. filer:
  18. image: chrislusf/seaweedfs:local
  19. ports:
  20. - 8888:8888
  21. - 18888:18888
  22. command: 'filer -master="master:9333"'
  23. depends_on:
  24. - master
  25. - volume
  26. s3:
  27. image: chrislusf/seaweedfs:local
  28. ports:
  29. - 8333:8333
  30. command: '-v 9 s3 -filer="filer:8888"'
  31. depends_on:
  32. - master
  33. - volume
  34. - filer
  35. minio:
  36. image: minio/minio
  37. ports:
  38. - 9000:9000
  39. command: 'minio server /data'
  40. environment:
  41. MINIO_ACCESS_KEY: "some_access_key1"
  42. MINIO_SECRET_KEY: "some_secret_key1"
  43. depends_on:
  44. - master
  45. registry1:
  46. image: registry:2
  47. environment:
  48. REGISTRY_HTTP_ADDR: "0.0.0.0:5001" # seaweedfs s3
  49. REGISTRY_LOG_LEVEL: "debug"
  50. REGISTRY_STORAGE: "s3"
  51. REGISTRY_STORAGE_S3_REGION: "us-east-1"
  52. REGISTRY_STORAGE_S3_REGIONENDPOINT: "http://s3:8333"
  53. REGISTRY_STORAGE_S3_BUCKET: "registry"
  54. REGISTRY_STORAGE_S3_ACCESSKEY: "some_access_key1"
  55. REGISTRY_STORAGE_S3_SECRETKEY: "some_secret_key1"
  56. REGISTRY_STORAGE_S3_V4AUTH: "true"
  57. REGISTRY_STORAGE_S3_SECURE: "false"
  58. REGISTRY_STORAGE_S3_SKIPVERIFY: "true"
  59. REGISTRY_STORAGE_S3_ROOTDIRECTORY: "/"
  60. REGISTRY_STORAGE_DELETE_ENABLED: "true"
  61. REGISTRY_STORAGE_REDIRECT_DISABLE: "true"
  62. REGISTRY_VALIDATION_DISABLED: "true"
  63. ports:
  64. - 5001:5001
  65. depends_on:
  66. - s3
  67. - minio
  68. registry2:
  69. image: registry:2
  70. environment:
  71. REGISTRY_HTTP_ADDR: "0.0.0.0:5002" # minio
  72. REGISTRY_LOG_LEVEL: "debug"
  73. REGISTRY_STORAGE: "s3"
  74. REGISTRY_STORAGE_S3_REGION: "us-east-1"
  75. REGISTRY_STORAGE_S3_REGIONENDPOINT: "http://minio:9000"
  76. REGISTRY_STORAGE_S3_BUCKET: "registry"
  77. REGISTRY_STORAGE_S3_ACCESSKEY: "some_access_key1"
  78. REGISTRY_STORAGE_S3_SECRETKEY: "some_secret_key1"
  79. REGISTRY_STORAGE_S3_V4AUTH: "true"
  80. REGISTRY_STORAGE_S3_SECURE: "false"
  81. REGISTRY_STORAGE_S3_SKIPVERIFY: "true"
  82. REGISTRY_STORAGE_S3_ROOTDIRECTORY: "/"
  83. REGISTRY_STORAGE_DELETE_ENABLED: "true"
  84. REGISTRY_STORAGE_REDIRECT_DISABLE: "true"
  85. REGISTRY_VALIDATION_DISABLED: "true"
  86. ports:
  87. - 5002:5002
  88. depends_on:
  89. - s3
  90. - minio