mirror of
https://github.com/dockur/windows.git
synced 2026-02-04 16:09:43 +00:00
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:
parent
5b274afbba
commit
23cc434703
21 changed files with 43 additions and 22 deletions
|
|
@ -16,7 +16,7 @@ services:
|
|||
- 3307:3389/udp
|
||||
volumes:
|
||||
- ../../data/win7:/storage
|
||||
restart: unless-stopped
|
||||
restart: ${RESTART_POLICY:-on-failure}
|
||||
stop_grace_period: 2m
|
||||
|
||||
win7e:
|
||||
|
|
@ -36,5 +36,5 @@ services:
|
|||
- 3371:3389/udp
|
||||
volumes:
|
||||
- ../../data/win7e:/storage
|
||||
restart: unless-stopped
|
||||
restart: ${RESTART_POLICY:-on-failure}
|
||||
stop_grace_period: 2m
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue