sudo apt-get update && sudo apt-get install -y docker.io docker-buildx
sudo usermod -aG docker $USER
point the domain to server ip before starting the container.
git clone https://github.com/iamtrazy/xray-docker-tls.git
nano xray-docker-tls/.env
cd xray-docker-tls
docker buildx build -t caddy_xray .
docker run --name caddy_xray -p 80:80 -p 443:443 --restart unless-stopped -d caddy_xray:latest
vless://$UUID@$DOMAIN:443/?type=ws&encryption=none&host=$DOMAIN&path=%2Fiamtrazy&security=tls&sni=$DOMAIN&fp=chrome&packetEncoding=xudp#CDN
replace $DOMAIN and $UUID with your Domain and UUID, set allowInsecure to true to add custom SNI (setting allowInsecure to true may make you vulnerable to MITM attacks).