mirror of
https://github.com/dockur/windows.git
synced 2026-02-03 17:27:21 +00:00
- Changed restart policy from unless-stopped to on-failure
so Windows shutdown stops the container instead of restarting
- Added RESTART_POLICY env variable to .env.modern and .env.legacy
- Compose files use ${RESTART_POLICY:-on-failure} for flexibility
- Updated WINCTL_GUIDE.md with restart policy documentation
- Updated readme.md with RESTART_POLICY setting
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
412 B
YAML
21 lines
412 B
YAML
services:
|
|
win2k:
|
|
image: dockurr/windows
|
|
container_name: win2k
|
|
env_file: ../../.env.legacy
|
|
environment:
|
|
VERSION: "2k"
|
|
devices:
|
|
- /dev/kvm
|
|
- /dev/net/tun
|
|
cap_add:
|
|
- NET_ADMIN
|
|
ports:
|
|
- 8000:8006
|
|
- 3300:3389/tcp
|
|
- 3300:3389/udp
|
|
volumes:
|
|
- ../../data/win2k:/storage
|
|
restart: ${RESTART_POLICY:-on-failure}
|
|
stop_grace_period: 2m
|