Skip to content

unclemikael/docker-v2ray-tls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-v2ray-tls

快速优雅 部署v2ray WebSocket + TLS 自动续签

基于nginx-proxy修改

一行代码能做的事

  • nginx-proxy管理证书
  • 随机UUID
  • 随机path(路径)
  • 生成二维码
  • 方便挂载其他网站、域名

使用方法(直接复制)

一. 安装docker和docker-compose,或选择装好Docker的主机

#docker
curl -fsSL https://get.docker.com -o get-docker.sh
bash get-docker.sh 1>/dev/null
#docker-compose
sudo curl -fsSL \
"https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" \
-o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
#start docker
systemctl enable docker
systemctl start docker

Centos8 会安装失败,解决办法自行Google

二.下载文件

方法1

Curl

mkdir docker-v2ray-tls && cd docker-v2ray-tls

curl -fsSL \
https://raw.githubusercontent.com/unclemikael/docker-v2ray-tls/master/install.sh \
-o install.sh

curl -fsSL \
https://raw.githubusercontent.com/unclemikael/docker-v2ray-tls/master/docker-compose.yml \
-o docker-compose.yml

curl -fsSL \
https://raw.githubusercontent.com/unclemikael/docker-v2ray-tls/master/config.json \
-o config.json

sudo chmod u+x install.sh

方法2

Git clone

git clone https://github.com/unclemikael/docker-v2ray-tls.git
cd docker-v2ray-tls
sudo chmod u+x install.sh

三. 输入自己的域名(*)

./install.sh example.org

Tips:自定义路径、UUID

./install.sh example.org /v2ray 8b8b1829-17c7-4e80-ad78-84160f04f363

注意事项

  • 需要占用80、443端口
  • 关闭防火墙或开启80,443端口
  • 确保dns已经正确解析
  • 默认处于LETSENCRYPT_TEST=true测试证书模式,会提示不安全,不影响使用
  • 可到docker-compose.yml修改成LETSENCRYPT_TEST=false正式证书

已测试系统

  • Centos 7 (ipv6有问题)
  • Debian 10 (√)
  • Ubuntu 20.10 (√)

About

快速优雅 一行代码 部署v2ray WebSocket + TLS

Resources

Stars

Watchers

Forks

Contributors

Languages