gpu passtrough moved to separate file

This commit is contained in:
Dobromir Popov
2025-11-22 14:48:58 +02:00
parent 23b4e1a8ee
commit 185d4f520b
6 changed files with 414 additions and 25 deletions

View File

@@ -0,0 +1,33 @@
services:
windows:
image: dockurr/windows # https://github.com/dockur/windows
container_name: windows-gpu
environment:
VERSION: "11"
RAM_SIZE: "8G"
CPU_CORES: "4"
GPU: "Y"
ARGUMENTS: "-device vfio-pci,host=c5:00.0,addr=0x05,multifunction=on,rombar=0 -device vfio-pci,host=c5:00.1,addr=0x05.1"
devices:
- /dev/kvm
- /dev/net/tun
- /dev/nvme0n1p8:/disk2
- /dev/vfio/vfio
- /dev/vfio/20
- /dev/vfio/21
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: "no" # Manual start only - requires GPU binding first
stop_grace_period: 2m