diff --git a/rxr_mcwin/docker-compose.yml b/rxr_mcwin/docker-compose.yml index 4435e4f..1b5f69e 100644 --- a/rxr_mcwin/docker-compose.yml +++ b/rxr_mcwin/docker-compose.yml @@ -1,27 +1,31 @@ services: windows: - image: dockurr/windows:4.07 - container_name: windows_server + image: dockurr/windows + container_name: windows environment: - VERSION: "2022" # 选择 Windows Server 2025 - DISK_SIZE: "200G" # 设置硬盘大小为200GB - CPU_CORES: "6" # 设置CPU核心数为6 - RAM_SIZE: "5G" # 设置内存大小为5GB - DHCP: "Y" # 启用DHCP,从路由器获取IP地址 - USERNAME: "Zengtudor" # 设置用户名为 Zengtudor - PASSWORD: "Zengtudor" # 设置密码为 Zengtudor + VERSION: "2022" + DISK_SIZE: "200G" + RAM_SIZE: "6G" + CPU_CORES: "6" + USERNAME: "Zengtudor" + PASSWORD: "Zengtudor" + LANGUAGE: "Chinese" devices: - - /dev/kvm # KVM加速 - - /dev/vhost-net # vhost-net 设备支持 - stop_grace_period: 60s + - /dev/kvm + - /dev/net/tun + - /dev/vhost-net + device_cgroup_rules: + - 'c *:* rwm' cap_add: - - NET_ADMIN # 网络管理权限 + - NET_ADMIN + stop_grace_period: 2m volumes: - - /root/mcwin:/storage # 将虚拟磁盘存储到 /root/mcwin + - /root/mcwin:/storage + - /root/mc:/data networks: - vlan: # 使用macvlan网络 - ipv4_address: 192.168.2.100 # 该IP地址会由路由器分配(可选,如果使用DHCP则可不设置) - + vlan: + ipv4_address: 192.168.2.123 + networks: vlan: driver: macvlan @@ -30,4 +34,4 @@ networks: ipam: config: - subnet: 192.168.2.0/24 # 根据你的网络设置调整 - gateway: 192.168.2.1 # 适当设置你的网关 + gateway: 192.168.2.1 # 适当设置你的网关 \ No newline at end of file