Update Windows container configuration in codespaces.yml

This commit is contained in:
Freddy4343 2026-01-09 12:58:13 -05:00 committed by GitHub
parent c7aac1edcf
commit bc0ad9c973
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,19 +3,36 @@ services:
container_name: windows container_name: windows
image: ghcr.io/dockur/windows image: ghcr.io/dockur/windows
environment: environment:
RAM_SIZE: "half" # --- Performance ---
DISK_SIZE: "max" RAM_SIZE: "12GB" # Your current setting
CPU_CORES: "max" DISK_SIZE: "1TB" # Your current setting
CPU_CORES: "4" # Increased from 1 for better Windows 11 performance
VGA: "virtio-gpu" # Recommended for smoother display & higher resolution
# --- Automated Installation ---
VERSION: "win11" # Options: win11 (default), win10, ltsc10, win7, xp, 2022
LANGUAGE: "English" # Sets OS language
USERNAME: "Codespace" # Custom user created during auto-setup
PASSWORD: "Password123" # Custom password for the user
# --- Advanced Hardware & Storage ---
# GPU: "Y" # Set to "Y" and add /dev/dri to devices for acceleration
# DHCP: "Y" # Gives the VM its own IP address on your network
DISK2_SIZE: "100GB" # Creates a secondary D: drive
devices: devices:
- /dev/kvm - /dev/kvm
- /dev/net/tun - /dev/net/tun
# - /dev/dri:/dev/dri # Uncomment if using GPU: "Y"
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
ports: ports:
- 8006:8006 - 8006:8006 # Web Viewer (Main UI)
- 3389:3389/tcp - 3389:3389/tcp # Remote Desktop (RDP)
- 3389:3389/udp - 3389:3389/udp
volumes: volumes:
- ./windows:/storage - ./windows:/storage # Persistent main OS storage
restart: on-failure - ./shared:/shared # Map host folder to 'Shared' folder on Win desktop
- ./data2:/storage2 # Volume for second disk (DISK2_SIZE)
restart: unless-stopped # Better than 'on-failure' for persistent use
stop_grace_period: 2m stop_grace_period: 2m