exo icon indicating copy to clipboard operation
exo copied to clipboard

如何添加其他节点

Open ZH4201 opened this issue 1 year ago • 1 comments

我通过docker部署了项目但无法自动添加节点 image image image

ZH4201 avatar Oct 15 '24 04:10 ZH4201

exo 使用端口进行 UDP 通信和发现,你得通过 Docker 暴露这些端口

docker run -d \
  -p 50051:50051/udp \
  -p 5678:5678/udp \
  -p 5679:5679/udp \
  your-image-name

或用 compose.yaml

  your-service:
    image: your-image-name
    ports:
      - "50051:50051/udp"
      - "5678:5678/udp"
      - "5679:5679/udp"

或用 dockerfile

EXPOSE 50051/udp
EXPOSE 5678/udp
EXPOSE 5679/udp

ji-cryptocafe avatar Oct 15 '24 19:10 ji-cryptocafe