mirror of
https://github.com/dockur/windows.git
synced 2026-01-08 23:33:15 +00:00
Merge pull request #2 from 474791-dev/474791-dev-patch-2
Update Windows service configuration in compose.yml
This commit is contained in:
commit
342a81cd3d
22
compose.yml
22
compose.yml
@ -2,21 +2,37 @@ services:
|
||||
windows:
|
||||
image: dockurr/windows
|
||||
container_name: windows
|
||||
hostname: win2025
|
||||
environment:
|
||||
VERSION: "11"
|
||||
VERSION: "2025"
|
||||
DISK_DRIVER: "virtio" # faster disk I/O
|
||||
NET_DRIVER: "virtio" # faster networking
|
||||
USERNAME: "admin"
|
||||
PASSWORD: "StrongPassword123!"
|
||||
devices:
|
||||
- /dev/kvm
|
||||
- /dev/net/tun
|
||||
- /dev/dri:/dev/dri # GPU passthrough if available
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_ADMIN
|
||||
ports:
|
||||
- 8006:8006
|
||||
- 3389:3389/tcp
|
||||
- 3389:3389/udp
|
||||
volumes:
|
||||
- windows_data:/storage # VM’s own 2TB disk
|
||||
- windows_data:/storage
|
||||
- /dev/hugepages:/dev/hugepages # HugePages for faster memory
|
||||
restart: always
|
||||
stop_grace_period: 2m
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "16" # max 16 cores
|
||||
memory: 32G # max 32 GB RAM
|
||||
reservations:
|
||||
cpus: "8" # reserve 8 cores
|
||||
memory: 16G # reserve 16 GB RAM
|
||||
|
||||
volumes:
|
||||
windows_data:
|
||||
@ -25,4 +41,4 @@ volumes:
|
||||
type: xfs
|
||||
o: pquota
|
||||
device: /var/lib/docker/volumes/windows_data
|
||||
size: 2T # dedicated 2 terabyte quota
|
||||
size: 2T # dedicated 2 terabyte disk
|
||||
|
||||
Loading…
Reference in New Issue
Block a user