例:
新建一个名为config.yaml的文件,放在/data/fulltclash下,在config.yaml中写入如下信息:
admin:
- 12345678 # 改成自己的telegram uid
- 8765431 # 这是第二行,表示第二个管理员,没有第二个管理员就把该行删除。
##bot相关配置
bot:
api_id: 123456 #改成自己的api_id
api_hash: 123456ABCDefg #改成自己的api_hash
bot_token: 123456:ABCDefgh123455 # bot_token, 从 @BotFather 获取
# proxy: "host:端口:用户名:密码" #socks5代理,用户名和密码为可选配置,海外用户可以不填
clash:
core: 4 # 核心数,数量越多测试速度越快,但代价是内存会大量占用(每个核心大概10M),自己的机子多少内存自己平衡
auto-start: true # bot启动时顺带启动,若为false则需要在 bot上输入/clash start 手动启动
geoip-api: "ip.sb" # GEOIP 测试api,取二级域名,目前支持 ip-api.com ip.sb ipleak.net ipdata.co ipapi.co 五种,其中 ipdata 需要配置下面的geoip-key
#geoip-key: xxxxxxx #ipdata 的 apikey,如果使用其他api则无需填写
docker run -itd \
--name fulltclash \
--restart=unless-stopped \
-v /data/fulltclash/config.yaml:/FullTclash/resources/config.yaml \
steven8886/fulltclash
https://github.com/AirportR/FullTclash/blob/dev/resources/config.yaml.example
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower -cR fulltclash
Content type
Image
Digest
sha256:90d04d7d5…
Size
185.7 MB
Last updated
about 3 years ago
docker pull steven8886/fulltclash