Skip to content

qiangweihewu/best-cf-ip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

best-cf-ip

intro

配合 cloudflare & v2ray 使用

在 docker 运行,可以自动化定时更新 CloudFlare CDN 到自己设备最高速的 IP

运行原理是,容器开启时运行一次 best-cf-ip.sh,然后 crontab 每小时运行一次 best-cf-ip.sh

ip-total.txt 网友总结的 cloudflare ips

ip-core.txt 我排除了一些对我来说肯定没速度的 ips

github

https://github.com/duxlong/best-cf-ip

docker hub

https://hub.docker.com/r/duxlong/best-cf-ip

usage

docker pull

docker pull duxlong/best-cf-ip:latest

docker run(根据自己的情况修改)

docker run -d \
    -e DOCKERNAME="v2fly" \
    -v /var/run/docker.sock:/var/run/docker.sock:ro \
    -v /volume1/docker/v2fly:/root/v2ray \
    --name="best-cf-ip" \
    duxlong/best-cf-ip

-e DOCKERNAME="v2fly" 设置 your-docker-v2ray-name

-v /var/run/docker.sock:/var/run/docker.sock:ro 在容器内操作其他容器

-v /volume1/docker/v2fly:/root/v2ray 方便修改 v2ray config 文件

docker compose @ QNAP-951N

version: "3"

services:
  
  best-cf-ip:
    container_name: best-cf-ip
    image: duxlong/best-cf-ip
    network_mode: host
    # modify CMD
    command: /root/best-cf-ip.sh
    environment:
      - DOCKERNAME=v2ray-core
    volumes:
      # operate other dockers in docker
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /share/container/docker/v2ray:/root/v2ray

About

配合 v2ray @ heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 87.9%
  • Dockerfile 12.1%