当前位置:   article > 正文

docker安装fastdfs_fastdfs 5 docker

fastdfs 5 docker

docker安装说明: https://blog.csdn.net/song_java/article/details/88061162

docker镜像地址: https://store.docker.com/community/images/season/fastdfs 

宿主机IP地址: 192.168.174.129

使用docker-compose运行fastdfs

  1. version: '2'
  2. services:
  3. tracker:
  4. image: season/fastdfs:1.2
  5. restart: always
  6. volumes:
  7. - "/etc/timezone:/etc/timezone:ro"
  8. - "/etc/localtime:/etc/localtime:ro"
  9. - "./tracker_data:/fastdfs/tracker/data"
  10. network_mode: "host"
  11. command: "tracker"
  12. storage:
  13. image: season/fastdfs:1.2
  14. restart: always
  15. volumes:
  16. - "/etc/timezone:/etc/timezone:ro"
  17. - "/etc/localtime:/etc/localtime:ro"
  18. - "./storage_base_path:/fastdfs/storage/data"
  19. - "./store_path0:/fastdfs/store_path"
  20. environment:
  21. TRACKER_SERVER: "192.168.174.129:22122"
  22. network_mode: "host"
  23. command: "storage"
  24. nginx:
  25. image: season/fastdfs:1.2
  26. restart: always
  27. volumes:
  28. - "/etc/timezone:/etc/timezone:ro"
  29. - "/etc/localtime:/etc/localtime:ro"
  30. - "./nginx.conf:/etc/nginx/conf/nginx.conf"
  31. - "./store_path0:/fastdfs/store_path"
  32. environment:
  33. TRACKER_SERVER: "192.168.174.129:22122"
  34. network_mode: "host"
  35. command: "nginx"

根据docker-compose.yml我们看到主要有3个模块: tracker  storage  nginx

tracker 

      挂载 /fastdfs/tracker/data ,这个目录对应的是 tracker.conf中的 base_path

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/986630
推荐阅读
相关标签
  

闽ICP备14008679号