2023-09-01 21:25:04 +08:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
metacubexd:
|
|
|
|
container_name: metacubexd
|
|
|
|
image: ghcr.io/metacubex/metacubexd
|
|
|
|
restart: always
|
|
|
|
ports:
|
2023-09-05 20:53:00 +08:00
|
|
|
- '80:80'
|
2023-09-01 21:25:04 +08:00
|
|
|
|
|
|
|
# optional
|
|
|
|
meta:
|
|
|
|
container_name: meta
|
2023-12-01 18:43:40 +08:00
|
|
|
image: docker.io/metacubex/mihomo:Alpha
|
2023-09-01 21:25:04 +08:00
|
|
|
restart: always
|
2024-03-20 16:18:18 +08:00
|
|
|
pid: host
|
|
|
|
ipc: host
|
2023-09-01 21:25:04 +08:00
|
|
|
network_mode: host
|
|
|
|
cap_add:
|
2024-03-20 16:18:18 +08:00
|
|
|
- ALL
|
2023-09-01 21:25:04 +08:00
|
|
|
volumes:
|
2024-03-20 16:18:18 +08:00
|
|
|
- /dev/net/tun:/dev/net/tun
|
2023-12-01 18:43:40 +08:00
|
|
|
- ./config.yaml:/root/.config/mihomo
|