diff --git a/README.md b/README.md index 5e3e8e0..cd3bc39 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/v2ray/README.md b/v2ray/README.md new file mode 100644 index 0000000..b22eead --- /dev/null +++ b/v2ray/README.md @@ -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 diff --git a/v2ray/data/config.json b/v2ray/data/config.json new file mode 100644 index 0000000..a82b20d --- /dev/null +++ b/v2ray/data/config.json @@ -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": {} + } +} diff --git a/v2ray/docker-compose.yml b/v2ray/docker-compose.yml new file mode 100644 index 0000000..aee71a2 --- /dev/null +++ b/v2ray/docker-compose.yml @@ -0,0 +1,7 @@ +v2ray: + image: v2ray/official + ports: + - "8001:8001" + volumes: + - ./data:/etc/v2ray + restart: always