docker-windows/.env.example
Michel Abboud 23cc434703 feat: Add configurable restart policy, default to on-failure
- Changed restart policy from unless-stopped to on-failure
  so Windows shutdown stops the container instead of restarting
- Added RESTART_POLICY env variable to .env.modern and .env.legacy
- Compose files use ${RESTART_POLICY:-on-failure} for flexibility
- Updated WINCTL_GUIDE.md with restart policy documentation
- Updated readme.md with RESTART_POLICY setting

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:46:11 +00:00

25 lines
1 KiB
Text

# Windows Docker VM Configuration
#
# 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)
# RESTART_POLICY=on-failure # Restart policy (no, on-failure, always, unless-stopped)
# DEBUG=N # Debug mode (Y/N)