local-dev-compose.yml 1021 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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"
  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 -preStopSeconds=1"
  15. depends_on:
  16. - master
  17. filer:
  18. image: chrislusf/seaweedfs:local
  19. ports:
  20. - 8888:8888
  21. - 18888:18888
  22. command: 'filer -master="master:9333"'
  23. depends_on:
  24. - master
  25. - volume
  26. s3:
  27. image: chrislusf/seaweedfs:local
  28. ports:
  29. - 8333:8333
  30. command: 's3 -filer="filer:8888"'
  31. depends_on:
  32. - master
  33. - volume
  34. - filer
  35. mount:
  36. image: chrislusf/seaweedfs:local
  37. privileged: true
  38. cap_add:
  39. - SYS_ADMIN
  40. mem_limit: 4096m
  41. command: '-v=4 mount -filer="filer:8888" -dirAutoCreate -dir=/mnt/seaweedfs -cacheCapacityMB=100 -concurrentWriters=128'
  42. depends_on:
  43. - master
  44. - volume
  45. - filer