local-dev-compose.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. - 8888:8888
  29. - 18888:18888
  30. command: '-v=1 filer -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. s3:
  39. image: chrislusf/seaweedfs:local
  40. ports:
  41. - 8333:8333
  42. command: '-v=1 s3 -filer="filer:8888"'
  43. depends_on:
  44. - master
  45. - volume
  46. - filer
  47. volumes:
  48. - ./tls:/etc/seaweedfs/tls
  49. env_file:
  50. - ${ENV_FILE:-dev.env}
  51. mount:
  52. image: chrislusf/seaweedfs:local
  53. privileged: true
  54. cap_add:
  55. - SYS_ADMIN
  56. mem_limit: 4096m
  57. command: '-v=4 mount -filer="filer:8888" -dirAutoCreate -dir=/mnt/seaweedfs -cacheCapacityMB=100 -concurrentWriters=128'
  58. volumes:
  59. - ./tls:/etc/seaweedfs/tls
  60. env_file:
  61. - ${ENV_FILE:-dev.env}
  62. depends_on:
  63. - master
  64. - volume
  65. - filer