local-registry-compose.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. s3:
  18. image: chrislusf/seaweedfs:local
  19. ports:
  20. - 8888:8888
  21. - 18888:18888
  22. - 8333:8333
  23. command: '-v 9 filer -master="master:9333" -s3 -s3.config=/etc/seaweedfs/s3.json -s3.port=8333'
  24. volumes:
  25. - ./s3.json:/etc/seaweedfs/s3.json
  26. depends_on:
  27. - master
  28. - volume
  29. minio:
  30. image: minio/minio
  31. ports:
  32. - 9000:9000
  33. command: 'minio server /data'
  34. environment:
  35. MINIO_ACCESS_KEY: "some_access_key1"
  36. MINIO_SECRET_KEY: "some_secret_key1"
  37. depends_on:
  38. - master
  39. registry1:
  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
  61. - minio
  62. registry2:
  63. image: registry:2
  64. environment:
  65. REGISTRY_HTTP_ADDR: "0.0.0.0:5002" # minio
  66. REGISTRY_LOG_LEVEL: "debug"
  67. REGISTRY_STORAGE: "s3"
  68. REGISTRY_STORAGE_S3_REGION: "us-east-1"
  69. REGISTRY_STORAGE_S3_REGIONENDPOINT: "http://minio:9000"
  70. REGISTRY_STORAGE_S3_BUCKET: "registry"
  71. REGISTRY_STORAGE_S3_ACCESSKEY: "some_access_key1"
  72. REGISTRY_STORAGE_S3_SECRETKEY: "some_secret_key1"
  73. REGISTRY_STORAGE_S3_V4AUTH: "true"
  74. REGISTRY_STORAGE_S3_SECURE: "false"
  75. REGISTRY_STORAGE_S3_SKIPVERIFY: "true"
  76. REGISTRY_STORAGE_S3_ROOTDIRECTORY: "/"
  77. REGISTRY_STORAGE_DELETE_ENABLED: "true"
  78. REGISTRY_STORAGE_REDIRECT_DISABLE: "true"
  79. REGISTRY_VALIDATION_DISABLED: "true"
  80. ports:
  81. - 5002:5002
  82. depends_on:
  83. - s3
  84. - minio