Giter Club home page Giter Club logo

docker-compose-v2fly-core's Introduction

docker-compose-v2fly-core

This use docker-compose to start v2ray.

Install docker

sudo yum -y install docker

Install docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose

Write v2ray configuration

sudo mkdir -pv /etc/v2ray/
sudo vim /etc/v2ray/config.json
  1. Examples available at v2fly/v2ray-examples.
  2. Configuration file config.json can also be generated by 2dust/v2rayN.

Run container

git clone https://github.com/LinuxHub-Group/docker-compose-v2fly-core.git
cd ./docker-compose-v2fly-core/
sudo docker-compose -f ./docker-compose.yml up -d

Check v2ray

$ sudo docker logs v2fly-core
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
V2Ray 4.41.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.16.6 linux/amd64)
A unified platform for anti-censorship.
2021/09/18 08:10:38 [Info] main/jsonem: Reading config: /etc/v2ray/config.json

$ sudo netstat -ntulp | grep v2ray
tcp6       0      0 :::10808                :::*                    LISTEN      577594/v2ray
tcp6       0      0 :::10809                :::*                    LISTEN      577594/v2ray
udp6       0      0 :::10808                :::*                                577594/v2ray

docker-compose-v2fly-core's People

Contributors

arondight avatar

Stargazers

 avatar

Watchers

 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.