local-dev-compose.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. version: '3.9'
  2. services:
  3. master:
  4. image: chrislusf/seaweedfs:local
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. command: "-v=1 master -ip=master -volumeSizeLimitMB=10"
  9. volumes:
  10. - ./tls:/etc/seaweedfs/tls
  11. env_file:
  12. - ${ENV_FILE:-dev.env}
  13. volume:
  14. image: chrislusf/seaweedfs:local
  15. ports:
  16. - 8080:8080
  17. - 18080:18080
  18. command: "-v=1 volume -mserver=master:9333 -port=8080 -ip=volume -preStopSeconds=1 -max=10000"
  19. depends_on:
  20. - master
  21. volumes:
  22. - ./tls:/etc/seaweedfs/tls
  23. env_file:
  24. - ${ENV_FILE:-dev.env}
  25. filer:
  26. image: chrislusf/seaweedfs:local
  27. ports:
  28. - 8888:8888
  29. - 18888:18888
  30. command: '-v=1 filer -ip.bind=0.0.0.0 -master="master:9333"'
  31. depends_on:
  32. - master
  33. - volume
  34. volumes:
  35. - ./tls:/etc/seaweedfs/tls
  36. env_file:
  37. - ${ENV_FILE:-dev.env}
  38. iam:
  39. image: chrislusf/seaweedfs:local
  40. ports:
  41. - 8111:8111
  42. command: '-v=1 iam -filer="filer:8888" -master="master:9333"'
  43. depends_on:
  44. - master
  45. - volume
  46. - filer
  47. volumes:
  48. - ./tls:/etc/seaweedfs/tls
  49. s3:
  50. image: chrislusf/seaweedfs:local
  51. ports:
  52. - 8333:8333
  53. command: '-v=1 s3 -filer="filer:8888" -ip.bind=s3'
  54. depends_on:
  55. - master
  56. - volume
  57. - filer
  58. volumes:
  59. - ./tls:/etc/seaweedfs/tls
  60. env_file:
  61. - ${ENV_FILE:-dev.env}
  62. mount:
  63. image: chrislusf/seaweedfs:local
  64. privileged: true
  65. cap_add:
  66. - SYS_ADMIN
  67. mem_limit: 4096m
  68. command: '-v=4 mount -filer="filer:8888" -dirAutoCreate -dir=/mnt/seaweedfs -cacheCapacityMB=100 -concurrentWriters=128'
  69. volumes:
  70. - ./tls:/etc/seaweedfs/tls
  71. env_file:
  72. - ${ENV_FILE:-dev.env}
  73. depends_on:
  74. - master
  75. - volume
  76. - filer