minimum v2ray configuration

./data/v2ray/config.json 

{
    "inbounds": [
        {
            "port": 10000,
            "listen": "0.0.0.0",
            "protocol": "vmess",
            "settings": {
                "clients": [
                    {
                        "id": "cc2d2564-e877-4f9f-959c-af373c1f91d6",
                        "alterId": 64,
                        "security": "auto"
                    }
                ]
            }
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom",
            "settings": {}
        }
    ]
}

docker-compose.yml

version: "3.8"
services:

  v2ray:
    image: v2fly/v2fly-core
    volumes:
      - ./data/v2ray:/etc/v2ray
    ports:
      - "10000:10000"
    restart: always

client v2ray config

  • address: Your server IP
  • port: 10000
  • id: cc2d2564-e877-4f9f-959c-af373c1f91d6
  • alterid: 64
  • security: auto
  • network: tcp
  • head type: none