Coder Social home page Coder Social logo

v2ray-docker-compose's Introduction

V2Ray Docker 使用说明

准备工作(适用于新服务器)

  1. 一个干净的服务器是缺少一些工具的,需要自己装一下,比如:wget、git、docker、docker-compose 这些(具体咋装软件如有需要再补充吧),安装好后,克隆本项目,再把 docker 服务开起来;

  2. 准备一个域名,免费域名经测试申请不了了,所以花点小钱买一个,然后把 A 记录解析改为你服务器 ip。

服务端

  1. 使用 GGUID 生成一个 ID 标识,然后打开 ./v2ray/config.json 文件,修改第 9 行的 ID 标识;

  2. 看这个说明安装 acme.sh,安装好后,按照说明申请证书(最省心的方法是执行这个命令:acme.sh --issue -d yourdomain.com --standalone,就会在 ~/.acme.sh/ 目录下生成好证书),把 yourdomain.ctr 和 yourdomain.key 这两个重命名为 v2ray.ctr 和 v2ray.key,接着把它们拷贝到 ./nginx/certs/ 目录下。

注意:如果没有生成 .ctr 文件,而是生成了 .cer 文件,请修改 ./nginx/conf.d/v2ray.conf 第 22 行 的后缀。

  1. 修改 ./nginx/conf.d/v2ray.conf 第 8 行 的域名地址。

  2. 启动临时服务测试一下:docker-compose up,如果测试没问题,把这服务关了,执行这个开启服务:docker-compose up -d

客户端

  1. 神一样的工具们 下载当前环境的客户端;
  2. 按下图设置客户端即可:

资源

GGUID 生成器:https://www.guidgen.com/
免费域名:https://www.freenom.com/zh/freeandpaiddomains.html
acme.sh:https://github.com/Neilpang/acme.sh/wiki/%E8%AF%B4%E6%98%8E

v2ray-docker-compose's People

Contributors

kybetter avatar wubaiqing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.