windows_in_docker/compose/legacy/vista.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:
vista:
image: dockurr/windows
container_name: vista
env_file: ../../.env.legacy
environment:
VERSION: "vu"
devices:
- /dev/kvm
- /dev/net/tun
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3306:3389/tcp
- 3306:3389/udp
volumes:
- ../../data/vista:/storage
restart: ${RESTART_POLICY:-on-failure}
stop_grace_period: 2m