已添加 docker/compose.yml

This commit is contained in:
juewuy
2025-12-17 22:05:57 +08:00
parent aa324029cd
commit dcbac5aa6b

24
docker/compose.yml Normal file
View File

@@ -0,0 +1,24 @@
version: "3.9"
services:
shellclash:
image: shellclash:latest
container_name: shellclash
networks:
macvlan_lan:
ipv4_address: 192.168.31.222
cap_add:
- SYS_ADMIN
- NET_ADMIN
- NET_RAW
devices:
- "/dev/net/tun:/dev/net/tun"
sysctls:
net.ipv4.ip_forward: 1
volumes:
- /etc/ShellCrash:/root/ShellCrash
restart: unless-stopped
networks:
macvlan_lan:
external: true