gregwym / docker-v2ray

A docker-compose deployment for v2ray + WebSocket + TLS setup.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-v2ray

A docker-compose deployment for v2ray + WebSocket + TLS setup.

Recommended server: bandwagonhost.com

1. CentOS Setup

  1. Install tools yum install -y iperf3 vim git
  2. ./setup-centos7.sh which does the following

Add EPEL Repo

yum install -y epel-release

Install docker

yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce
systemctl start docker
systemctl enable docker

Install docker compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

2. Config

Update ./configs/v2ray/config.json

  • client-uuid
  • client@example.com

Update ./configs/Caddyfile

  • Replace localhost:8080 with real domain

3. Start

docker-compose up

Or run as daemon

docker-compose up -d

4. Setup client

See ./examples

  • client.json: for v2ray 4.20.0
  • client.legacy.json: for old v2ray or v2rayU
  • transparent-proxy.json: gateway proxy thru dokodemo-door + iptables

Misc

VPS Benchmarking: wget -qO- git.io/superbench.sh | bash

About

A docker-compose deployment for v2ray + WebSocket + TLS setup.

License:MIT License


Languages

Language:Shell 95.6%Language:HTML 4.4%