docker-compose fastdfs

version: '3'
services:
  tracker:
    hostname: fastdfs-tracker
    container_name: fastdfs-tracker
    image: delron/fastdfs
    network_mode: "host"
    restart: always
    volumes:
      - ./tracker:/var/fdfs
    command: tracker
    environment:
      - TZ=Asia/Shanghai

  storage:
    hostname: fastdfs-storage
    container_name: fastdfs-storage
    image: delron/fastdfs
    network_mode: "host"
    environment:
      - TZ=Asia/Shanghai
      - TRACKER_SERVER=10.0.0.21:22122
      - GROUP_NAME=group1
    restart: always
    volumes:
      - ./storage:/var/fdfs
    command: storage

注意 安装完成浏览器访问ip:8888/上传文件生成的字符串 访问验证

posted @ 2021-03-30 10:34  鸣昊  阅读(614)  评论(1编辑  收藏  举报