I use docker-compose to deploy xray. If your want to use my configuration or create your own, your can refer to the following setps
Firstly, clone this project locally
git clone https://github.com/zesty39/xray-docker-compose
Secondly, your must set these environment variables
export XRAY_DOMAIN="example.com"
export XRAY_UUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
export XRAY_WS_PATH="/ws-path"
export XRAY_EMAIL="[email protected]"
Then, running gen-xray-config.sh
script to generate xray configuration
./gen-xray-config.sh
Lastly, deploying by docker-compose
docker-compose up