37 lines
844 B
YAML
37 lines
844 B
YAML
services:
|
|
windows:
|
|
image: dockurr/windows
|
|
container_name: windows
|
|
environment:
|
|
VERSION: "2022"
|
|
DISK_SIZE: "200G"
|
|
RAM_SIZE: "6G"
|
|
CPU_CORES: "6"
|
|
USERNAME: "Zengtudor"
|
|
PASSWORD: "Zengtudor"
|
|
LANGUAGE: "Chinese"
|
|
devices:
|
|
- /dev/kvm
|
|
- /dev/net/tun
|
|
- /dev/vhost-net
|
|
device_cgroup_rules:
|
|
- 'c *:* rwm'
|
|
cap_add:
|
|
- NET_ADMIN
|
|
stop_grace_period: 2m
|
|
volumes:
|
|
- /root/mcwin:/storage
|
|
- /root/mc:/data
|
|
networks:
|
|
vlan:
|
|
ipv4_address: 192.168.2.123
|
|
|
|
networks:
|
|
vlan:
|
|
driver: macvlan
|
|
driver_opts:
|
|
parent: eno1 # 使用你的主要网络接口eno1
|
|
ipam:
|
|
config:
|
|
- subnet: 192.168.2.0/24 # 根据你的网络设置调整
|
|
gateway: 192.168.2.1 # 适当设置你的网关 |