mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-11 07:51:45 +00:00
32 lines
613 B
YAML
32 lines
613 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
shellclash:
|
|
image: juewuy/shellcrash:latest
|
|
container_name: shellcrash
|
|
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:
|
|
name: macvlan_lan
|
|
driver: macvlan
|
|
driver_opts:
|
|
parent: eth0
|
|
ipam:
|
|
config:
|
|
- subnet: 192.168.31.0/24
|
|
gateway: 192.168.31.1
|