GithubHelp home page GithubHelp logo

v2fly-docker-deployment's Introduction

V2FLY DEPLOY WITH DOCKER (WS+TLS+WEB)

为啥

方便在多台服务器部署服务 只需修改环境变量

准备

  • 一个域名
  • 一个SSL证书
  • 一个网站模板

Usage

环境变量

环境变量 作用 默认
V2FLY_VMESS_TAG_NAME V2ray vmess 标签名 nzzz
V2FLY_VMESS_LISTEN_ADDR V2ray vmess 监听地址 127.0.0.1
V2FLY_VMESS_LISTEN_PORT V2ray vmess 监听端口 20443
V2FLY_API_LISTEN_ADDR V2ray api 监听地址 127.0.0.1
V2FLY_API_LISTEN_PORT V2ray api 监听端口 10085
SERVER_NAME 域名 localhost
NGINX_HTTP_LISTEN_PORT Nginx http 监听端口 80
NGINX_HTTPS_LISTEN_PORT Nginx https 监听端口 443

挂载目录

PS: 可以在构建时复制到镜像里面 无需挂载

挂载点 作用
/fakeweb nginx伪装网站
/ssl/fullchain.cer 证书crt
/ssl/private.key 证书key

构建步骤

  1. 修改 config.json.template:28 clients 配置

  2. 将证书放置到 ssl 目录下 ( 包含 fullchain.cer private.key ) 名字必须相同

  3. 将网站模板放置到 fakeweb 目录下 ( 入口为 index.html )

如上两个步骤可以不做 可在启动镜像时挂载 ( 推荐构建镜像时复制到容器内 )

  1. 构建镜像 ( 可能存在无法下载最新 v2ray-core 的网络问题 )
docker build -t <名字>:<版本> .

image-20210907162740790

v2fly-docker-deployment's People

Contributors

nzzz964 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.