mirror of
https://github.com/dockur/windows.git
synced 2026-02-04 07:59:43 +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>
40 lines
817 B
YAML
40 lines
817 B
YAML
services:
|
|
win81:
|
|
image: dockurr/windows
|
|
container_name: win81
|
|
env_file: ../../.env.legacy
|
|
environment:
|
|
VERSION: "8"
|
|
devices:
|
|
- /dev/kvm
|
|
- /dev/net/tun
|
|
cap_add:
|
|
- NET_ADMIN
|
|
ports:
|
|
- 8008:8006
|
|
- 3308:3389/tcp
|
|
- 3308:3389/udp
|
|
volumes:
|
|
- ../../data/win81:/storage
|
|
restart: ${RESTART_POLICY:-on-failure}
|
|
stop_grace_period: 2m
|
|
|
|
win81e:
|
|
image: dockurr/windows
|
|
container_name: win81e
|
|
env_file: ../../.env.legacy
|
|
environment:
|
|
VERSION: "8e"
|
|
devices:
|
|
- /dev/kvm
|
|
- /dev/net/tun
|
|
cap_add:
|
|
- NET_ADMIN
|
|
ports:
|
|
- 8081:8006
|
|
- 3381:3389/tcp
|
|
- 3381:3389/udp
|
|
volumes:
|
|
- ../../data/win81e:/storage
|
|
restart: ${RESTART_POLICY:-on-failure}
|
|
stop_grace_period: 2m
|