-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e17fcc8
commit bbd4ea7
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
# V2Ray Docker Compose for Single Server | ||
|
||
V2Ray is a proxy tool equipped with advanced functionalities and supports protocols such as Shadowsocks, VMess, and Trojan. | ||
Currently, [V2Fly](https://www.v2fly.org) maintains V2Ray. | ||
V2Ray is a proxy tool equipped with advanced functionalities and supports protocols such as Shadowsocks, VMess, VLess, and Trojan. | ||
Currently, [V2Fly](//www.v2fly.org) maintains V2Ray, while the original [V2Ray](//v2ray.com) is no longer active. | ||
|
||
The simplest and most straightforward method to install V2Ray on a server is by using Docker and Docker Compose, | ||
as outlined in this documentation. | ||
|
||
## Setup | ||
|
||
To set up V2Ray using Docker Compose, follow the steps outlined below. | ||
To set up V2Ray using Docker Compose, follow the steps described below. | ||
|
||
1. Install Docker and Docker-compose ([Official Documanetation](https://docs.docker.com/engine/install/#supported-platforms)). | ||
1. Install Docker and Docker-compose ([Official Documanetation](//docs.docker.com/engine/install/#supported-platforms)). | ||
1. Run `git clone https://github.com/miladrahimi/v2ray-docker-compose.git` to download this repository. | ||
1. Run `cd v2ray-docker-compose/v2ray-single-server` to change the directory. | ||
1. Replace `<UPSTREAM-PASSWORD>` in `v2ray.json` with a Shadowsocks password like `FR33DoM`. | ||
1. Replace `<SHADOWSOCKS-PASSWORD>` in `v2ray.json` with a secure password like `FR33DoM`. | ||
1. If `ufw` is installed and enabled, run `ufw allow 8000`. | ||
1. Run `docker compose up -d`. | ||
1. Run `./clients.py` to generate client configurations. | ||
1. (Optional) Run `./../utils/bbr.sh` to setup BBR and speed up the server network. | ||
1. (Optional) Run `./../utils/bbr.sh` to setup [BBR](//github.com/google/bbr) and speed up the server network. | ||
|
||
## Configuration | ||
|
||
The default configuration uses the Shadowsocks protocol, but you can manually add any other protocols supported by V2Ray to the configuration. | ||
|
||
For more information about available protocols, refer to the [official documentation](https://www.v2fly.org/v5/config/inbound.html). | ||
For more information about available protocols, refer to the [official documentation](//www.v2fly.org/v5/config/inbound.html). | ||
|
||
## Advanced Solutions | ||
|
||
V2Ray on a single server might not work well in highly restricted networks where directly using protocols like Shadowsocks is a struggle. | ||
To set up V2Ray effectively in such environments, check the main documentation in this repository for advanced solutions. | ||
|
||
[https://github.com/miladrahimi/v2ray-docker-compose](https://github.com/miladrahimi/v2ray-docker-compose) | ||
[https://github.com/miladrahimi/v2ray-docker-compose](//github.com/miladrahimi/v2ray-docker-compose) |