You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.6 KiB

  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. volumes:
  16. - type: bind
  17. source: /Volumes/mobile_disk/data
  18. target: /data
  19. depends_on:
  20. - master
  21. filer:
  22. image: chrislusf/seaweedfs:local
  23. ports:
  24. - 8888:8888
  25. - 18888:18888
  26. command: 'filer -master="master:9333"'
  27. depends_on:
  28. - master
  29. - volume
  30. s3:
  31. image: chrislusf/seaweedfs:local
  32. ports:
  33. - 8333:8333
  34. command: '-v 9 s3 -filer="filer:8888"'
  35. depends_on:
  36. - master
  37. - volume
  38. - filer
  39. minio:
  40. image: minio/minio
  41. ports:
  42. - 9000:9000
  43. command: 'minio server /data'
  44. environment:
  45. MINIO_ACCESS_KEY: "some_access_key1"
  46. MINIO_SECRET_KEY: "some_secret_key1"
  47. depends_on:
  48. - master
  49. registry1:
  50. image: registry:2
  51. environment:
  52. REGISTRY_HTTP_ADDR: "0.0.0.0:5001" # seaweedfs s3
  53. REGISTRY_LOG_LEVEL: "debug"
  54. REGISTRY_STORAGE: "s3"
  55. REGISTRY_STORAGE_S3_REGION: "us-east-1"
  56. REGISTRY_STORAGE_S3_REGIONENDPOINT: "http://s3:8333"
  57. REGISTRY_STORAGE_S3_BUCKET: "registry"
  58. REGISTRY_STORAGE_S3_ACCESSKEY: "some_access_key1"
  59. REGISTRY_STORAGE_S3_SECRETKEY: "some_secret_key1"
  60. REGISTRY_STORAGE_S3_V4AUTH: "true"
  61. REGISTRY_STORAGE_S3_SECURE: "false"
  62. REGISTRY_STORAGE_S3_SKIPVERIFY: "true"
  63. REGISTRY_STORAGE_S3_ROOTDIRECTORY: "/"
  64. REGISTRY_STORAGE_DELETE_ENABLED: "true"
  65. REGISTRY_STORAGE_REDIRECT_DISABLE: "true"
  66. REGISTRY_VALIDATION_DISABLED: "true"
  67. ports:
  68. - 5001:5001
  69. depends_on:
  70. - s3
  71. - minio
  72. registry2:
  73. image: registry:2
  74. environment:
  75. REGISTRY_HTTP_ADDR: "0.0.0.0:5002" # minio
  76. REGISTRY_LOG_LEVEL: "debug"
  77. REGISTRY_STORAGE: "s3"
  78. REGISTRY_STORAGE_S3_REGION: "us-east-1"
  79. REGISTRY_STORAGE_S3_REGIONENDPOINT: "http://minio:9000"
  80. REGISTRY_STORAGE_S3_BUCKET: "registry"
  81. REGISTRY_STORAGE_S3_ACCESSKEY: "some_access_key1"
  82. REGISTRY_STORAGE_S3_SECRETKEY: "some_secret_key1"
  83. REGISTRY_STORAGE_S3_V4AUTH: "true"
  84. REGISTRY_STORAGE_S3_SECURE: "false"
  85. REGISTRY_STORAGE_S3_SKIPVERIFY: "true"
  86. REGISTRY_STORAGE_S3_ROOTDIRECTORY: "/"
  87. REGISTRY_STORAGE_DELETE_ENABLED: "true"
  88. REGISTRY_STORAGE_REDIRECT_DISABLE: "true"
  89. REGISTRY_VALIDATION_DISABLED: "true"
  90. ports:
  91. - 5002:5002
  92. depends_on:
  93. - s3
  94. - minio