33 lines
879 B
YAML
33 lines
879 B
YAML
# Windows Container - Shared Mode (No GPU Passthrough)
|
|
# Host and container can both run simultaneously
|
|
# Windows gets VirtIO display, host keeps AMD GPU
|
|
# For GPU passthrough, use: docker-compose.gpu-passthrough.yml
|
|
services:
|
|
windows:
|
|
image: dockurr/windows # https://github.com/dockur/windows
|
|
container_name: windows2
|
|
environment:
|
|
VERSION: "11"
|
|
RAM_SIZE: "8G"
|
|
CPU_CORES: "4"
|
|
devices:
|
|
- /dev/kvm
|
|
- /dev/net/tun
|
|
- /dev/nvme0n1p8:/disk2
|
|
cap_add:
|
|
- NET_ADMIN
|
|
privileged: true
|
|
ports:
|
|
- 445:445
|
|
- 1433:1433
|
|
- 8006:8006
|
|
- 3389:3389/tcp
|
|
- 3389:3389/udp
|
|
volumes:
|
|
# - /dev/nvme0n1p7:/disk1 # blind mount - not working for now
|
|
- /mnt/data/docker_vol/windows:/storage # storage (img file)location
|
|
- /mnt/shared:/data
|
|
restart: always
|
|
stop_grace_period: 2m
|
|
|