commit
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
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
|
||||
Reference in New Issue
Block a user