docker部署seaweedf

该文描述了一个使用DockerCompose配置SeaweedFS分布式文件系统的流程,包括master、volume、filer、s3和webdav服务,所有服务均设置为使用宿主机网络模式,并指定了IP和端口。此外,还提及了一个用于启动的shell脚本install.sh。
摘要由CSDN通过智能技术生成

总的来说需要两个文件,如下:

 1、compose.yml 

需要注意:network_mode 模式、ip为宿主机ip

version: '3.3'

services:
  master:
    network_mode: "host"
    image: chrislusf/seaweedfs # use a remote image
    command: "master -ip=172.0.16.143 -ip.bind=172.0.16.143 -metricsPort=9324"
  volume:
    network_mode: "host"
    image: chrislusf/seaweedfs # use a remote image
    command: 'volume -mserver="172.0.16.143:9333" -ip.bind=172.0.16.143 -port=8080  -metricsPort=9325'
    depends_on:
      - master
  filer:
    network_mode: "host"
    image: chrislusf/seaweedfs # use a remote image
    command: 'filer -master="172.0.16.143:9333" -ip.bind=172.0.16.143 -metricsPort=9326'
    tty: true
    stdin_open: true
    depends_on:
      - master
      - volume
  s3:
    network_mode: "host"
    image: chrislusf/seaweedfs # use a remote image
    command: 's3 -filer="172.0.16.143:8888" -ip.bind=172.0.16.143 -metricsPort=9327'
    depends_on:
      - master
      - volume
      - filer
  webdav:
    network_mode: "host"
    image: chrislusf/seaweedfs # use a remote image
    command: 'webdav -filer="172.0.16.143:8888"'
    depends_on:
      - master
      - volume
      - filer
#  prometheus:
#    image: prom/prometheus:v2.21.0
#    ports:
#      - 9000:9090
#    volumes:
#      - ./prometheus:/etc/prometheus
#    command: --web.enable-lifecycle  --config.file=/etc/prometheus/prometheus.yml
#    depends_on:
#      - s3

2、install.sh

docker-compose -f seaweedfs-compose.yml -p seaweedfs up

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值