mirror of
https://github.com/v2fly/v2ray-examples.git
synced 2025-04-02 00:59:29 +08:00
added vless + websocket + docker-compose
This commit is contained in:
parent
5d2309feb5
commit
decc487696
39
VLESS-WS-Docker/config.json
Normal file
39
VLESS-WS-Docker/config.json
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
"log": {
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "0.0.0.0",
|
||||
"port": 1234,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "",
|
||||
"level": 0,
|
||||
"email": "love@v2fly.org"
|
||||
}
|
||||
],
|
||||
"decryption": "none",
|
||||
"fallbacks": [
|
||||
{
|
||||
"dest": 8001
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"wsSettings": {
|
||||
"path": "/vmess"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom",
|
||||
"tag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
11
VLESS-WS-Docker/docker-compose.yml
Normal file
11
VLESS-WS-Docker/docker-compose.yml
Normal file
@ -0,0 +1,11 @@
|
||||
version: '3'
|
||||
services:
|
||||
xray:
|
||||
image: teddysun/xray
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
environment:
|
||||
- V2RAY_VMESS_AEAD_FORCED=false
|
||||
entrypoint: ["/usr/bin/xray", "-config", "/etc/xray/config.json"]
|
||||
volumes:
|
||||
- ./config.json:/etc/xray/config.json:ro
|
Loading…
x
Reference in New Issue
Block a user