proxy compose entry.

This commit is contained in:
2025-10-31 04:16:42 +08:00
parent 3afc0c0c4c
commit 547495ca49

19
mihomo/docker-compose.yml Normal file
View File

@@ -0,0 +1,19 @@
version: '3'
# config.yaml just see wiki examples.
services:
mihomo:
container_name: mihomo
image: metacubex/mihomo:latest
restart: always
#ports:
# - 7890:7890
# - 9090:9090
pid: host
ipc: host
network_mode: host
cap_add:
- ALL
volumes:
- /usr/local/etc/mihomo:/root/.config/mihomo
- /dev/net/tun:/dev/net/tun