docker-compose.yml file
version: "3"
services:
windows:
image: dockurr/windows
container_name: windows
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
environment:
VERSION: "win7"
#environment:
# VERSION: "https://example.com/win.iso"
# Alternatively, you can also rename a local file to custom.iso and place it in an empty /storage folder to skip the download.
volumes:
- ./win_dir:/storage
stop_grace_period: 2m
restart: on-failure