Skip to content

An easily deployable Docker container running Xray Core and WARP, providing an effective solution for bypassing censorship.

Notifications You must be signed in to change notification settings

harukodi/xray-warp-ct

Repository files navigation

Xray-Warp docker container

PREREQUISITES

  • Docker and Docker-compose
  • Non-root account
  • Domain name on cloudflare
  • Cloudflare auth token with the Zone.DNS permission

Create docker-compose file and the needed folders

mkdir xray-warp && \
cd xray-warp && \
mkdir certs && \
mkdir -p config/{caddy_config,xray_config} && \
touch docker-compose.yaml

Docker-compose file example

services:
  xray-warp:
    image: xia1997x/xray-warp:latest
    container_name: xray-warp-ct
    user: 1000:1000
    ports:
      - '443:443'
    environment:
      - DOMAIN_NAME=subdomain.domain.tld
      - PORT=443
      - FINGERPRINT=chrome
      - XRAY_VERSION=latest # The latest tag will now skip over pre-releases
      - WGCF_VERSION=2.2.24
      - CLOUDFLARE_AUTH_TOKEN=
      - ENABLE_CADDY_LOG=False
      - ENABLE_IPV6=False # Should be false per default if VPS supports ipv6 you can enable this!
    volumes:
      - ./certs:/xray_base/caddy_certs
      - ./config/xray_config:/xray_base/xray_config
      - ./config/caddy_config:/xray_base/caddy_config

File tree

📦xray-ct-test  
 ┣ 📂certs  
 ┣ 📂config  
 ┃ ┣ 📂caddy_config  
 ┃ ┗ 📂xray_config  
 ┗ 📜docker-compose.yaml

Spin up the container

sudo docker-compose up -d

NOTE: After starting the container, you can find the VLESS link and QR code inside the xray_config folder.

Enjoying this project? Support me with a coffee! ☕️✨ Thanks for your support! 🙌 https://ko-fi.com/xia1997x⁠

Made with ❤️ in Sweden! By xia1997x