Files
2026-10-07 11:07:00 +08:00

35 lines
984 B
YAML
Executable File

version: '3.8'
services:
mihomo:
container_name: mihomo-core
# image: metacubex/mihomo:latest # :Alpha :v1.19.x
#
image: docker.1ms.run/metacubex/mihomo:latest
restart: always
network_mode: host
pid: host
ipc: host
cap_add:
- ALL # NET_ADMIN - ALL
security_opt:
- apparmor=unconfined #
volumes:
- ./data:/root/.config/mihomo #
- /dev/net/tun:/dev/net/tun # TUN
- /etc/localtime:/etc/localtime:ro #
depends_on:
- metacubexd
metacubexd: # (XD)
container_name: mihomo-web
# image: ghcr.io/metacubex/metacubexd:latest
#
image: ghcr.1ms.run/metacubex/metacubexd:latest
restart: always
network_mode: bridge # host
ports:
- "9097:80" # 9091
volumes:
- ./config:/config/caddy #
- /etc/localtime:/etc/localtime:ro