Skip to content

Dockerfile to create a Docker container image for FastDFS Storage

Notifications You must be signed in to change notification settings

songtielei/fdfs_storage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

FastDFS Docker

FastDFS is an open source high performance distributed file system. It's major functions include: file storing, file syncing and file accessing (file uploading and file downloading), and it can resolve the high capacity and load balancing problem. FastDFS should meet the requirement of the website whose service based on files such as photo sharing site and video sharing site.

https://github.com/happyfish100/fastdfs

Run as a tracker

docker run -d --name tracker -v ~/data/fastdfs/tracker:/data/tracker -p 22122:22122 fdfs_tracker

  • port: tracker default port is 22122
  • base_path: map the path "/data/tracker"

Run as a storage

docker run -d --name storage -v ~/data/fastdfs/storage:/data/storage --link tracker:tracker -p 80:80 -e TRACKER=tracker fdfs_storage

  • port: nginx default port is 80
  • base_path and store_path0: map the path "/data/storage"
  • TRACKER: tracker container's name

Log

  • docker logs tracker

  • docker logs storage

About

Dockerfile to create a Docker container image for FastDFS Storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nginx 45.4%
  • Lua 37.2%
  • Shell 17.4%