客户端
vim docker-compose.yaml
编写一下内容
services:
frpc:
image: snowdreamtech/frpc:latest
container_name: frpc
restart: always
network_mode: host
volumes:
- ./etc/frp/frpc.toml:/etc/frp/frpc.toml
labels:
createdBy: "Apps"
编写frpc.toml文件
vim ./etc/frp/frpc.toml
保存退出,然后启动
docker compose up -d
服务端
services:
frps:
image: snowdreamtech/frps:latest
container_name: frps
restart: always
network_mode: host
volumes:
- ./etc/frp/frps.toml:/etc/frp/frps.toml
labels:
createdBy: "Apps"
docker-compose up -d