xray_docker/README.md
2024-05-15 22:08:44 +08:00

61 lines
964 B
Markdown

# 说明
## 前提
提前安装好以下软件
- curl
- docker
- docker-compose
- jq - 用于查看json文件, 提取json文件信息. 编辑json文件
- qrencode - 用于生成二维码
## 启动和关闭
生成并设置密钥和uuid, **第一次运行必须执行**
```
cd ./bin
bash ./init.sh
```
启动
```
docker-compose up -d
```
关闭
```
docker-compose down
```
## 更新镜像
```
bash ./bin/update_docker_images.sh
```
## 查看分享链接
```
bash ./bin/print_share_link.sh
```
## 修改端口
修改conf/config.json
```json
// ...
"inbounds": [
{
"listen": "0.0.0.0",
"port": 8003, // 修改为你想要的端口, 比如:9991
"protocol": "vless",
// ...
}
]
//...
```
## 参考信息
- [xray官方文档](https://xtls.github.io/)
- [xray代码仓库](https://github.com/xtls/xray-core)
- [xray docker镜像](https://hub.docker.com/r/teddysun/xray)
- [xray安装命令](https://github.com/XTLS/Xray-install)