mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
update v2ray
This commit is contained in:
parent
269dd7716c
commit
9f6ccb75b0
@ -25,4 +25,4 @@ RUN set -xe \
|
||||
|
||||
EXPOSE 10086
|
||||
|
||||
CMD ["v2ray", "run"]
|
||||
CMD ["v2ray", "run", "-c", "/etc/v2ray/config.yaml"]
|
||||
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
24
v2ray/data/etc/config.yaml
Normal file
24
v2ray/data/etc/config.yaml
Normal 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
0
v2ray/data/log/.gitkeep
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user