refactor: Use separate .env.modern and .env.legacy files

- Remove base-legacy.yml and base-modern.yml (YAML anchors don't work with include)
- Make all compose files self-contained
- Add .env.modern (8G RAM, 4 CPU) for Win 10/11, Server 2016+
- Add .env.legacy (2G RAM, 2 CPU) for older systems
- Update README and .env.example documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Michel Abboud 2026-01-28 23:44:10 +00:00
parent 620cda9282
commit c27837738d
22 changed files with 291 additions and 212 deletions

View file

@ -1,40 +1,24 @@
# Windows Docker VM Configuration
# Copy this file to .env and customize
# ===========================================
# MODERN SYSTEMS (Windows 10/11, Server 2016+)
# ===========================================
MODERN_RAM_SIZE=8G
MODERN_CPU_CORES=4
MODERN_DISK_SIZE=128G
# ===========================================
# LEGACY SYSTEMS (Windows 7/8, Vista, XP, 2000, Server 2003-2012)
# ===========================================
LEGACY_RAM_SIZE=2G
LEGACY_CPU_CORES=2
LEGACY_DISK_SIZE=32G
# ===========================================
# COMMON SETTINGS (applies to all)
# ===========================================
# User Credentials
USERNAME=Docker
PASSWORD=admin
# Language & Region
LANGUAGE=en
REGION=en-US
KEYBOARD=en-US
# Display
WIDTH=1280
HEIGHT=720
# Network
DHCP=N
SAMBA=Y
# Debug
DEBUG=N
#
# Two env files are provided with optimized defaults:
# - .env.modern (8G RAM, 4 CPU) - Windows 10/11, Server 2016+
# - .env.legacy (2G RAM, 2 CPU) - Windows 7/8, Vista, XP, 2000, Server 2003-2012, Tiny
#
# Each compose file references the appropriate env file automatically.
# Edit .env.modern or .env.legacy to customize settings.
#
# Available settings:
#
# RAM_SIZE=8G # Memory allocation
# CPU_CORES=4 # CPU cores
# DISK_SIZE=128G # Virtual disk size
# USERNAME=Docker # Windows username
# PASSWORD=admin # Windows password
# LANGUAGE=en # Installation language
# REGION=en-US # Region setting
# KEYBOARD=en-US # Keyboard layout
# WIDTH=1280 # Display width
# HEIGHT=720 # Display height
# DHCP=N # Use DHCP (Y/N)
# SAMBA=Y # Enable file sharing (Y/N)
# DEBUG=N # Debug mode (Y/N)