This repository contains sample Docker Compose files to run V2Ray (V2Fly) upstream and bridge servers.
Note If you need to manage your users and their usage, see Outline Bridge Server instead.
- Upstream Server: A server that has free access to the Internet.
- Bridge Server: A server that is available to clients and has access to the upstream server.
- Client: A user-side application with access to the bridge server.
(Client) <-> [ Bridge Server ] <-> [ Upstream Server ] <-> (Internet)
- Install Docker and Docker-compose.
- Copy the
v2ray-upstream-server
directory into the upstream server. - Run
cat /proc/sys/kernel/random/uuid
command to generate a UUID. - Replace
<UPSTREAM-UUID>
in theconfig/config.json
file with the generated UUID. - Run
docker-compose up -d
.
- Install Docker and Docker-compose.
- Copy the
v2ray-bridge-server
directory into the bridge server. - Replace the following variables in the
config/config.json
file with appropriate values.<SHADOWSOCKS-PASSWORD>
: A password for Shadowsocks users likeFR33DoM
.<BRIDGE-UUID>
: A new UUID for bridge server (Runcat /proc/sys/kernel/random/uuid
).<UPSTREAM-IP>
: The upstream server IP address like13.13.13.13
.<UPSTREAM-UUID>
: The generated UUID for the upstream server.
- Run
docker-compose up -d
. - (Optional) You can run
./v2ray-bridge-server/clients.py
to generate client configurations and links.
Shadowsocks is a popular proxy protocol with a variety of client applications. We recommend these client applications:
- Outline
- Shadowsocks for macOS
- Shadowsocks for Linux
- Shadowsocks for Windows
- Shadowsocks for Android
- ShadowLink for iOS
You can configure your client application using these settings:
IP Address: <BRIDGE-IP>
Port: 1210
Encryption/Method/Algorithm: aes-128-gcm
Password: <SHADOWSOCKS-PASSWORD>
The VMESS proxy protocol is the primary protocol that V2Ray (V2Fly) servers provide. We recommend these client applications:
You can configure your client application using these settings:
IP Address: <BRIDGE-IP>
Port: 1310
ID/UUID/UserID: <BRIDGE-UUID>
Alter ID: 0
Level: 0
Security/Method/Encryption: aes-128-gcm
Network: TCP
Moved here: HTTP_SOCKS.md
- Some hostings might ban your proxy traffic. Use an appropriate hosting.
- Some Internet providers might ban your proxy traffic. Use an appropriate Internet provider. See #57.
- GitHub:
- Image:
ghcr.io/getimages/v2fly-core:v4.45.2
- URL: https://github.com/orgs/getimages/packages/container/package/v2fly-core
- Digest:
sha256:289fc9451f21a265f95615e29f05ea23bc32026db152863eee317738813521d7
- Image:
- Docker Hub:
- Image:
v2fly/v2fly-core:v4.45.2
- URL: https://hub.docker.com/r/v2fly/v2fly-core/tags
- Digest:
sha256:289fc9451f21a265f95615e29f05ea23bc32026db152863eee317738813521d7
- Image:
- Docker Compose files to run an Outline bridge server
- Setup V2Ray servers using Ansible
- Read more about V2Fly
- Read more about V2Fly configurations
This repository is kind of forked from v2ray-config-examples. Thanks to @xesina and other contributors.