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.

86 lines
2.5 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. version: '3.9'
  2. services:
  3. master:
  4. image: chrislusf/seaweedfs:local
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. command: "master -ip=master -volumeSizeLimitMB 100"
  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"
  15. depends_on:
  16. - master
  17. mysql:
  18. image: percona/percona-server:5.7
  19. ports:
  20. - 3306:3306
  21. volumes:
  22. - ./initdb.d:/docker-entrypoint-initdb.d
  23. environment:
  24. - MYSQL_ROOT_PASSWORD=secret
  25. - MYSQL_DATABASE=seaweedfs
  26. - MYSQL_PASSWORD=secret
  27. - MYSQL_USER=seaweedfs
  28. filer:
  29. image: chrislusf/seaweedfs:local
  30. ports:
  31. - 8888:8888
  32. - 18888:18888
  33. environment:
  34. - WEED_MYSQL_HOSTNAME=mysql
  35. - WEED_MYSQL_PORT=3306
  36. - WEED_MYSQL_DATABASE=seaweedfs
  37. - WEED_MYSQL_USERNAME=seaweedfs
  38. - WEED_MYSQL_PASSWORD=secret
  39. - WEED_MYSQL_ENABLED=true
  40. - WEED_MYSQL_CONNECTION_MAX_IDLE=5
  41. - WEED_MYSQL_CONNECTION_MAX_OPEN=75
  42. # "refresh" connection every 10 minutes, eliminating mysql closing "old" connections
  43. - WEED_MYSQL_CONNECTION_MAX_LIFETIME_SECONDS=600
  44. # enable usage of memsql as filer backend
  45. - WEED_MYSQL_INTERPOLATEPARAMS=true
  46. - WEED_LEVELDB2_ENABLED=false
  47. command: '-v 9 filer -master="master:9333"'
  48. depends_on:
  49. - master
  50. - volume
  51. - mysql
  52. s3:
  53. image: chrislusf/seaweedfs:local
  54. ports:
  55. - 8333:8333
  56. command: '-v 9 s3 -ip.bind=0.0.0.0 -filer="filer:8888" -allowEmptyFolder=false -allowDeleteBucketNotEmpty=true -allowListRecursive=true'
  57. depends_on:
  58. - master
  59. - volume
  60. - filer
  61. environment:
  62. - VIRTUAL_HOST=ingress
  63. - VIRTUAL_PORT=8333
  64. registry:
  65. image: registry:2
  66. environment:
  67. REGISTRY_HTTP_ADDR: "0.0.0.0:5001" # seaweedfs s3
  68. REGISTRY_LOG_LEVEL: "debug"
  69. REGISTRY_STORAGE: "s3"
  70. REGISTRY_STORAGE_S3_REGION: "us-east-1"
  71. REGISTRY_STORAGE_S3_REGIONENDPOINT: "http://s3:8333"
  72. REGISTRY_STORAGE_S3_BUCKET: "registry"
  73. REGISTRY_STORAGE_S3_ACCESSKEY: "some_access_key1"
  74. REGISTRY_STORAGE_S3_SECRETKEY: "some_secret_key1"
  75. REGISTRY_STORAGE_S3_V4AUTH: "true"
  76. REGISTRY_STORAGE_S3_SECURE: "false"
  77. REGISTRY_STORAGE_S3_SKIPVERIFY: "true"
  78. REGISTRY_STORAGE_S3_ROOTDIRECTORY: "/"
  79. REGISTRY_STORAGE_DELETE_ENABLED: "true"
  80. REGISTRY_STORAGE_REDIRECT_DISABLE: "true"
  81. REGISTRY_VALIDATION_DISABLED: "true"
  82. ports:
  83. - 5001:5001
  84. depends_on:
  85. - s3