欢迎大家访问我的网站!
图片名称

自建syncthing文件同步服务发现服务器和中继服务器

iwfacn2025-04-14 18:43:2011免费资源免费教程

syncthing是比较好用的异地文件同步工具,默认使用全球发现服务器。如果已经实现了异地组网,可以自建发现服务器和中继服务器:

services:
  # 自建syncthing的发现服务器 syncthing-discovery-server
  syncthing_discovery_server:
    image: syncthing/discosrv
    container_name: syncthing-discovery-server
    command: --debug --listen=":8443" --db-dir="."
    environment:
      - PUID=1000
      - PGID=1000
    volumes:
      - ./discosrv:/var/stdiscosrv
    ports:
      - 8443:8443 # Listen address (default “:8443”)
    restart: always

  # 自建syncthing的中继服务器 syncthing-relay-server
  syncthing_relay_server:
    image: syncthing/relaysrv:latest
    container_name: syncthing-relay-server
    command: -debug -pools="" -listen=":22067"
    environment:
      - PUID=1000
      - PGID=1000
    volumes:
      - ./relaysrv:/var/strelaysrv
    ports:
      - 22067:22067 # 中继服务器的数据连接端口(必须开启)
      #- 22070:22070  # 用于公用的中继服务器池,显示数据传输、客户端数量等状态,可不开启
    restart: always
转载声明:本站发布文章及版权归原作者所有,转载本站文章请注明文章来源!

本文链接:http://www.iwfacn.com/1119.html

图片名称
热门文章
随机文章
热门标签
侧栏广告位
图片名称
图片名称