windows_in_docker/compose/legacy/winxp.yml
Michel Abboud 23cc434703 feat: Add configurable restart policy, default to on-failure
- 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>
2026-01-29 00:46:11 +00:00

21 lines
412 B
YAML

services:
winxp:
image: dockurr/windows
container_name: winxp
env_file: ../../.env.legacy
environment:
VERSION: "xp"
devices:
- /dev/kvm
- /dev/net/tun
cap_add:
- NET_ADMIN
ports:
- 8005:8006
- 3305:3389/tcp
- 3305:3389/udp
volumes:
- ../../data/winxp:/storage
restart: ${RESTART_POLICY:-on-failure}
stop_grace_period: 2m