1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

add v2ray

This commit is contained in:
kev 2017-10-07 14:59:37 +08:00
parent dec8cbd67e
commit e500c40f2f
4 changed files with 51 additions and 0 deletions

View File

@ -270,6 +270,7 @@ A collection of delicious docker recipes.
- [ ] node-firefox
- [x] standalone-firefox
- [x] tutum/builder
- [x] v2ray/official :cn:
- [x] wekanteam/wekan
- [x] zookeeper

19
v2ray/README.md Normal file
View File

@ -0,0 +1,19 @@
v2ray
=====
[v2ray][1] is a platform for building proxies to bypass network restrictions.
```yaml
v2ray:
image: v2ray/official
ports:
- "8001:8001"
volumes:
- ./data:/etc/v2ray
restart: always
```
Download sample [config.json][2].
[1]: https://www.v2ray.com/
[2]: https://github.com/v2ray/install/raw/master/docker/official/config.json

24
v2ray/data/config.json Normal file
View File

@ -0,0 +1,24 @@
{
"log" : {
"access": "/dev/stdout",
"error": "/dev/stderr",
"loglevel": "warning"
},
"inbound": {
"port": 8001,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "11111111-2222-3333-4444-555555555555",
"level": 1,
"alterId": 32
}
]
}
},
"outbound": {
"protocol": "freedom",
"settings": {}
}
}

7
v2ray/docker-compose.yml Normal file
View File

@ -0,0 +1,7 @@
v2ray:
image: v2ray/official
ports:
- "8001:8001"
volumes:
- ./data:/etc/v2ray
restart: always