mihomo 是一个基于 Clash 核心的代理工具镜像,集成了 Metacubexd 管理面板,提供强大的代理功能和直观的 Web 管理界面。
构建信息
v1.19.31v1.273.1# Docker Hub
docker pull daitcl/mihomo:v1.19.31
# GitHub Container Registry
docker pull ghcr.io/daitcl/mihomo:v1.19.31
# 启动容器
docker run -d \
--name mihomo \
--restart always \
-p 7890:7890 \
-p 7891:7891 \
-p 7892:7892 \
-p 7893:7893 \
-p 7894:7894 \
-p 9090:9090 \
-p 8080:8080 \
-e TZ=Asia/Shanghai \
-e LOG_LEVEL=silent \
-e CLASH_SECRET="" \
-e SUBSCRIBE_URL="your_subscribe_url" \
-e SUBSCRIBE_NAME="your_subscribe_name" \
-v "$(pwd)/clash-config:/root/.config/mihomo" \
-v "$(pwd)/metacubexd-config:/config/caddy" \
--health-cmd "curl -f http://localhost:9090" \
--health-interval 30s \
--health-timeout 10s \
--health-retries 3 \
daitcl/mihomo:v1.19.31
version: '3.8'
services:
mihomo:
container_name: mihomo
image: daitcl/mihomo:latest
restart: always
environment:
# 核心配置
- TZ=Asia/Shanghai
- LOG_LEVEL=silent
- CLASH_SECRET=
- SUBSCRIBE_URL=your_subscribe_url
- SUBSCRIBE_NAME=your_subscribe_name
ports:
- "7890:7890" # HTTP代理
- "7891:7891" # SOCKS5代理
- "7892:7892" # 混合代理
- "7893:7893" # TPROXY
- "7894:7894" # REDIR
- "9090:9090" # Clash控制API
- "8080:8080" # Metacubexd Web UI
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9090"]
interval: 30s
timeout: 10s
retries: 3
volumes:
- ./clash-config:/root/.config/mihomo # Clash配置文件目录
- ./metacubexd-config:/config/caddy # Metacubexd配置目录
# - /etc/timezone:/etc/timezone:ro # 共享主机时区
# - /etc/localtime:/etc/localtime:ro
# 如需启用TUN模式,取消以下注释
# cap_add:
# - NET_ADMIN
# devices:
# - /dev/net/tun:/dev/net/tun
networks:
- clash-net
networks:
clash-net:
driver: bridge
仓库地址:https://github.com/daitcl/mihomo
作者:daitcl
项目源码:mihomo | Metacubexd

如果代码/容器对你有所启发,或者单纯想请我喝杯咖啡,
可以通过下方的 爱发电 或者 支付宝/微信赞赏码 来支持我创作。
每一份鼓励都是我持续创作的动力。
爱发电:赞助作者 — 点击链接即可支持

支付宝赞赏:扫一扫下方二维码

微信赞赏:扫一扫下方二维码

Content type
Image
Digest
sha256:152907caa…
Size
50.9 MB
Last updated
16 days ago
docker pull daitcl/mihomo