update v2ray

This commit is contained in:
kev 2024-05-13 14:38:17 +08:00
parent 269dd7716c
commit 9f6ccb75b0
5 changed files with 28 additions and 41 deletions

View File

@ -25,4 +25,4 @@ RUN set -xe \
EXPOSE 10086
CMD ["v2ray", "run"]
CMD ["v2ray", "run", "-c", "/etc/v2ray/config.yaml"]

View File

@ -1,39 +0,0 @@
{
"inbounds": [
{
"port": 10086,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "23ad6b10-8d1a-40f7-8ad0-e3e35cd38297",
"level": 1,
"alterId": 64
}
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"routing": {
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "blocked"
}
]
}
}

View File

@ -0,0 +1,24 @@
log:
access: /var/log/v2ray/access.log
error: /var/log/v2ray/error.log
loglevel: warning
inbounds:
- port: 10086
protocol: vmess
settings:
clients:
- id: 23ad6b10-8d1a-40f7-8ad0-e3e35cd38297
level: 1
alterId: 64
outbounds:
- protocol: freedom
settings: {}
- protocol: blackhole
settings: {}
tag: blocked
routing:
rules:
- type: field
ip:
- geoip:private
outboundTag: blocked

0
v2ray/data/log/.gitkeep Normal file
View File

View File

@ -2,8 +2,10 @@ version: "3.8"
services:
v2ray:
image: vimagick/v2ray
command: v2ray run -c /etc/v2ray/config.yaml
ports:
- "10086:10086"
volumes:
- ./data:/etc/v2ray
- ./data/etc:/etc/v2ray
- ./data/log:/var/log/v2ray
restart: unless-stopped