服务部署
# docker-compose.yml
services:
metacubexd:
container_name: metacubexd
image: ghcr.io/metacubex/metacubexd
restart: always
ports:
- 80:80
meta:
image: metacubex/mihomo
container_name: meta
network_mode: host
privileged: true
restart: always
pid: host
ipc: host
cap_add:
- ALL
volumes:
- ./config:/root/.config/mihomo
- /dev/net/tun:/dev/net/tun
2025/4/11约 225 字