2 Star 17 Fork 3

soft_xiang / docker-fastdfs-allinone

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
docker-compose.yaml 850 Bytes
Copy Edit Raw Blame History
soft_xiang authored 2019-12-11 17:48 . v5.11
version: '3.0'
services:
fastdfs:
build: .
image: xsj/fastdfs:5.11
# 该容器是否需要开机启动+自动重启。若需要,则取消注释。
restart: always
container_name: fastdfs
environment:
# nginx服务端口
- WEB_PORT=8888
# fdfs服务端口
- FDFS_PORT=22122
# 默认fastdfs storage server 端口
- STORAGE_PORT=23000
# docker所在主机的IP地址
- IP=内网ip
volumes:
# 将本地目录映射到docker容器内的fastdfs数据存储目录,将fastdfs文件存储到主机上,以免每次重建docker容器,之前存储的文件就丢失了。
- /usr/local/data/fastdfs:/var/local/fdfs
# 使docker具有root权限以读写主机上的目录
privileged: true
# 网络模式为host,即直接使用主机的网络接口
network_mode: "host"
Shell
1
https://gitee.com/soft_xiang/docker-fastdfs-allinone.git
git@gitee.com:soft_xiang/docker-fastdfs-allinone.git
soft_xiang
docker-fastdfs-allinone
docker-fastdfs-allinone
master

Search