services:
  windows:
    image: dockurr/windows
    container_name: windows-${IP}-${PORT_WEB}-${PORT_RDP}
    environment:
      VERSION: ${WINDOWS_VERSION} # See below the compose for list !, You can also use a custom url to a web ISO.
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - ${IP}:${PORT_WEB}:8006
      - ${IP}:${PORT_RDP}:3389/tcp
      - ${IP}:${PORT_RDP}:3389/udp
    stop_grace_period: 2m


#### VERSION LISTING ####
# win11	Windows 11 Pro	5.4 GB
# ltsc11	Windows 11 LTSC	4.2 GB
# win11e	Windows 11 Enterprise	5.8 GB
# win10	Windows 10 Pro	5.7 GB
# ltsc10	Windows 10 LTSC	4.6 GB
# win10e	Windows 10 Enterprise	5.2 GB
# win8	Windows 8.1 Pro	4.0 GB
# win8e	Windows 8.1 Enterprise	3.7 GB
# win7	Windows 7 Enterprise	3.0 GB
# vista	Windows Vista Enterprise	3.0 GB
# winxp	Windows XP Professional	0.6 GB
# 2025	Windows Server 2025	5.0 GB
# 2022	Windows Server 2022	4.7 GB
# 2019	Windows Server 2019	5.3 GB
# 2016	Windows Server 2016	6.5 GB
# 2012	Windows Server 2012	4.3 GB
# 2008	Windows Server 2008	3.0 GB
# 2003	Windows Server 2003	0.6 GB