This commit is contained in:
Zengtudor 2025-01-05 13:59:16 +08:00
parent 641e146c98
commit 7a9433919d

View File

@ -1,26 +1,30 @@
services: services:
windows: windows:
image: dockurr/windows:4.07 image: dockurr/windows
container_name: windows_server container_name: windows
environment: environment:
VERSION: "2022" # 选择 Windows Server 2025 VERSION: "2022"
DISK_SIZE: "200G" # 设置硬盘大小为200GB DISK_SIZE: "200G"
CPU_CORES: "6" # 设置CPU核心数为6 RAM_SIZE: "6G"
RAM_SIZE: "5G" # 设置内存大小为5GB CPU_CORES: "6"
DHCP: "Y" # 启用DHCP从路由器获取IP地址 USERNAME: "Zengtudor"
USERNAME: "Zengtudor" # 设置用户名为 Zengtudor PASSWORD: "Zengtudor"
PASSWORD: "Zengtudor" # 设置密码为 Zengtudor LANGUAGE: "Chinese"
devices: devices:
- /dev/kvm # KVM加速 - /dev/kvm
- /dev/vhost-net # vhost-net 设备支持 - /dev/net/tun
stop_grace_period: 60s - /dev/vhost-net
device_cgroup_rules:
- 'c *:* rwm'
cap_add: cap_add:
- NET_ADMIN # 网络管理权限 - NET_ADMIN
stop_grace_period: 2m
volumes: volumes:
- /root/mcwin:/storage # 将虚拟磁盘存储到 /root/mcwin - /root/mcwin:/storage
- /root/mc:/data
networks: networks:
vlan: # 使用macvlan网络 vlan:
ipv4_address: 192.168.2.100 # 该IP地址会由路由器分配可选如果使用DHCP则可不设置 ipv4_address: 192.168.2.123
networks: networks:
vlan: vlan: