update
This commit is contained in:
parent
641e146c98
commit
7a9433919d
@ -1,27 +1,31 @@
|
|||||||
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:
|
||||||
driver: macvlan
|
driver: macvlan
|
||||||
@ -30,4 +34,4 @@ networks:
|
|||||||
ipam:
|
ipam:
|
||||||
config:
|
config:
|
||||||
- subnet: 192.168.2.0/24 # 根据你的网络设置调整
|
- subnet: 192.168.2.0/24 # 根据你的网络设置调整
|
||||||
gateway: 192.168.2.1 # 适当设置你的网关
|
gateway: 192.168.2.1 # 适当设置你的网关
|
Loading…
Reference in New Issue
Block a user