Mihomo (Clash Meta) for MikroTik. Personal fork of wiktorbgu/mihomo-mikrotik.
388
This image is a personal fork of wiktorbgu/mihomo-mikrotik, the original project by wiktorbgu.
/interface/bridge add name=Bridge-Docker port-cost-mode=short
/ip/address add address=192.168.254.1/24 interface=Bridge-Docker network=192.168.254.0
/interface/veth add address=192.168.254.3/24 gateway=192.168.254.1 name=MIHOMO
/interface/bridge/port add bridge=Bridge-Docker interface=MIHOMO
/container envs add list=MIHOMO key=SRV1 value="vless://..."
/container envs add list=MIHOMO key=SRV2_TEST value="ss://..."
/container envs add list=MIHOMO key=SUB1 value="https://free..."
/container envs add list=MIHOMO key=SUB2_TEST value="https://my_subs..."
/container mounts add dst=/etc/mihomo/awg list=MIHOMO_AWG src=/usb1/docker_configs/mihomo_mikrotik/awg
*.conf files wireguard/amneziawg to mount dir /usb1/docker_configs/mihomo_mikrotik/awg⚠️ Important Config files must use LF (Unix) line endings. Files with CRLF will not work.
/container add envlists=MIHOMO interface=MIHOMO logging=yes remote-image=registry-1.docker.io/pillboxrus/mihomo-mikrotik root-dir=/usb1/docker/mihomo-mikrotik dns=1.1.1.1,8.8.8.8,9.9.9.9
# add these options to the command above if you are using mount
mountlists=MIHOMO_MIKROTIK,MIHOMO_AWG
# add this for more userfrendly ui
/container envs add list=MIHOMO key=EXTERNAL_UI_URL value="https://github.com/Zephyruso/zashboard/releases/latest/download/dist.zip"
/container envs add list=MIHOMO key=LOG_LEVEL value="error"
http://192.168.254.3:9090/ui/#/setup?hostname=192.168.254.3&port=9090&secret= or use online web panel => https://wiki.metacubex.one/en/startup/web/
LOG_LEVEL=error
UI_SECRET="sgddshje54w532tge54"
EXTERNAL_UI_URL="https://github.com/MetaCubeX/Yacd-meta/archive/refs/heads/gh-pages.zip"
# or dist.zip (7.8MB) – Includes better font-loading experience.
EXTERNAL_UI_URL="https://github.com/Zephyruso/zashboard/releases/latest/download/dist.zip"
# or dist-cdn-fonts.zip (1.4MB) – Optimized for devices with limited storage, fonts loaded from CDN.
EXTERNAL_UI_URL="https://github.com/Zephyruso/zashboard/releases/latest/download/dist-cdn-fonts.zip"
https://wiki.metacubex.one/en/startup/web/
for flexibility of manual control it is necessary to mount the config directory
/container mounts add dst=/etc/mihomo name=MIHOMO_MIKROTIK src=/usb1/docker_configs/mihomo_mikrotik
cmd parameter in MikroTik container settings is passed directly to Mihomo
(for CLI help, set cmd="-h", run the container, and check the logs).default_config.yaml —
it will be automatically restored to its original state./template directory.CONFIG="my_custom_config.yaml"/user_sh directory is intended for custom shell scripts.
All scripts in this directory are sourced and executed in the current shell
environment during container startup./user_sh share the same environment as the main entrypoint,
allowing you to extend functionality without modifying the entrypoint itself.⚠️ Template debugging: Mihomo will point to the error line in the config, example
Parse config error: yaml: line 83: could not find expected ':'which is located a directory higher in the WORKDIR with the same name as the template file itself, because variables can be filled with multi-line data
Content type
Image
Digest
sha256:67ba5668f…
Size
27.3 MB
Last updated
2 days ago
docker pull pillboxrus/mihomo-mikrotik