local-dev-compose.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. version: '2'
  2. services:
  3. master:
  4. image: chrislusf/seaweedfs:local
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. command: "-v=1 master -ip=master"
  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"
  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. - 8111:8111
  29. - 8888:8888
  30. - 18888:18888
  31. command: '-v=1 filer -master="master:9333" -iam'
  32. depends_on:
  33. - master
  34. - volume
  35. volumes:
  36. - ./tls:/etc/seaweedfs/tls
  37. env_file:
  38. - ${ENV_FILE:-dev.env}
  39. s3:
  40. image: chrislusf/seaweedfs:local
  41. ports:
  42. - 8333:8333
  43. command: '-v=1 s3 -filer="filer:8888"'
  44. depends_on:
  45. - master
  46. - volume
  47. - filer
  48. volumes:
  49. - ./tls:/etc/seaweedfs/tls
  50. env_file:
  51. - ${ENV_FILE:-dev.env}
  52. mount:
  53. image: chrislusf/seaweedfs:local
  54. privileged: true
  55. cap_add:
  56. - SYS_ADMIN
  57. mem_limit: 4096m
  58. command: '-v=4 mount -filer="filer:8888" -dirAutoCreate -dir=/mnt/seaweedfs -cacheCapacityMB=100 -concurrentWriters=128'
  59. volumes:
  60. - ./tls:/etc/seaweedfs/tls
  61. env_file:
  62. - ${ENV_FILE:-dev.env}
  63. depends_on:
  64. - master
  65. - volume
  66. - filer