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>
This commit is contained in:
Michel Abboud 2026-01-29 00:46:11 +00:00
parent 5b274afbba
commit 23cc434703
21 changed files with 43 additions and 22 deletions

View file

@ -136,6 +136,7 @@ DISK_SIZE=128G
USERNAME=docker
PASSWORD=admin
LANGUAGE=en
RESTART_POLICY=on-failure # Options: no, on-failure, always, unless-stopped
```
> 📖 See [WINCTL_GUIDE.md](WINCTL_GUIDE.md) for complete documentation, usage scenarios, and troubleshooting.