Sign inSign up

hxih/fastdfs

By hxih

Updated over 6 years ago

fastdfs base on alpine:3.9

Image
0

980

hxih/fastdfs repository overview

FastDFS Docker 镜像打包

基于轻量级的系统--Alpine

根据https://github.com/happyfish100/fastdfs/tree/master/docker/dockerfile_network 改造成为一个基于alpine3:9的镜像

打包

docker build -t \${CONTAINER_NAME}:\${VERSION} .
example:
docker build -t fastdfs:1.0 .

启动 单机模式 TRACKER_LIST参数如果有多个IP用英文的逗号分隔

docker run -d --name fastdfs --net=host -e SERVER=single -e TRACKER_LIST=\${YOUR_IP:PORT,...} \${CONTAINER_NAME}:\${VERSION}
example:
docker run -d --name fastdfs --net=host -e SERVER=single -e TRACKER_LIST=192.168.1.2:22122 fastdfs:1.0

启动集群模式 TRACKER_LIST参数如果有多个IP用英文的逗号分隔

在需要的服务器上启动tracker服务
docker run -d --name tracker --net=host -e SERVER=tracker \${CONTAINER_NAME}:\${VERSION}
example:
docker run -d --name tracker --net=host -e SERVER=tracker fastdfs:1.0
在存储服务器上启动storage服务包含nginx服务
docker run -d --name storage --net=host -e SERVER=storage -e TRACKER_LIST=\${YOUR_IP:PORT,...} \${CONTAINER_NAME}:\${VERSION}
example:
docker run -d --name storage --net=host -e SERVER=storage -e TRACKER_LIST=192.168.1.2:22122,192.168.1.3:22122 fastdfs:1.0

VERSION 1.2

1、新增环境变量NGINX_ROOT,赋值为'true'时,容器中nginx以root身份运行;
2、修复1.1版本如果不指定NGINX_PORT环境变量就无法访问的问题。

VERSION 1.1

1、新增环境变量NGINX_PORT自定义nginx监听端口(默认8888);
2、下载所需文件及软件打包为soft.tar.gz,包含:

https://github.com/happyfish100/fastdfs.git

https://github.com/happyfish100/fastdfs-nginx-module.git

https://github.com/happyfish100/libfastcommon.git

http://nginx.org/download/nginx-1.15.4.tar.gz

https://github.com/happyfish100/fastdfs/tree/master/docker/dockerfile_network/conf

Tag summary

Content type

Image

Digest

Size

83.7 MB

Last updated

over 6 years ago

docker pull hxih/fastdfs