Docker搭建基于WebRTC点对点传输工具FastSend-去中心化

局域网或Internet, 跨平台设备之间文件或目录互传, 批量文件高速传输

有什么用

2025年5月 当前类似的产品, 很好用: https://yunhe.in

怎么用

两个客户端同时打开网页, 一个发送, 另一个接受

比如手机端发送, MAC电脑端接受

相关内容

实现方法

git clone -depth 1

1
git clone --depth 1 https://github.com/ShouChenICU/FastSend.git 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
root@debian12:~/FastSend# docker-compose up -d                                                    
WARN[0000] /root/FastSend/docker-compose.yaml: `version` is obsolete
[+] Building 41.7s (7/11) docker:default
=> [app internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [app internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [app internal] load metadata for docker.io/library/node:18-alpine 41.6s
=> [app builder 1/6] FROM docker.io/library/node:18-alpine@sha256:8d6421d663b4c28fd3ebc498 0.0s
=> [app internal] load build context 0.0s
=> => transferring context: 14.72kB 0.0s
=> CACHED [app builder 2/6] WORKDIR /app 0.0s
=> CACHED [app builder 3/6] COPY package.json yarn.lock ./ 0.0s
=> ERROR [app builder 4/6] RUN yarn install --frozen-lockfile 31.2s
------
> [app builder 4/6] RUN yarn install --frozen-lockfile:
0.435 yarn install v1.22.22
0.507 [1/4] Resolving packages...
0.946 [2/4] Fetching packages...
30.54 error magic-string-ast@0.8.0: The engine "node" is incompatible with this module. Expected v
ersion ">=20.18.0". Got "18.20.8"
30.56 error Found incompatible module.
30.56 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
------
failed to solve: executor failed running [/bin/sh -c yarn install --frozen-lockfile]: exit code: 1
root@debian12:~/FastSend# docker-compose up -d

切换到新的源

1
2
3
4
docker pull 918178/fastsend

root@debian12:~/FastSend#
mkdir -p ~/FastSend && cd ~/FastSend
1
2
3
4
5
6
7
8
9
10
11
version: '3'
services:
fastsend:
image: 918178/fastsend:v0.5.7
container_name: fastsend
restart: unless-stopped
ports:
- 8084:3000
environment:
- NODE_ENV=production
command: node server/index.mjs

image-20250505184747522

可以正常使用, 但是缺点太明显了:

  1. 一次只能传输1个文件, 已经是Chrome了(同等情况下https://yunhe.in表现更优秀)
  2. 传输文件需要的点击数太多了; 手机端选择图片以后, 会出现一个接收码,
    1. 然后电脑端 还需要输入这个接收码
    2. 然后还需要手机端确认, 然后电脑端在确认
    3. 操作太繁琐

image-20250505185044035

1
2
3
4
5
6
7
8
9
10
11
12
13


version: '3'
services:
fastsend:
image: niliaerith/fastsend
container_name: fastsend
restart: unless-stopped
ports:
- 8084:3000
environment:
- NODE_ENV=production
command: node server/index.mjs

也是ok的, 但是功能上的弊端/缺陷, 依然存在;

暂停项目, 建议使用https://yunhe.in

个性化需求沟通 扫客服加V加群: