Skip to content

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

License

Notifications You must be signed in to change notification settings

gregwym/docker-v2ray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published