docker-windows/compose.yml

52 lines
1 KiB
YAML
Raw Normal View History

2024-01-14 17:16:02 +01:00
services:
2025-03-31 07:16:25 +00:00
windows-build:
build: .
2025-03-31 07:16:25 +00:00
container_name: windows-build
2025-02-25 13:04:48 +02:00
privileged: true
healthcheck:
2025-03-31 07:16:25 +00:00
test: "[ -f /data/prepared ] || exit 1"
interval: 30s
retries: 50
start_period: 600s
2025-02-25 13:04:48 +02:00
timeout: 2s
environment:
2024-11-10 00:01:12 +01:00
VERSION: "11"
2025-02-25 13:04:48 +02:00
USERNAME: "bill"
PASSWORD: "gates"
2025-03-31 07:16:25 +00:00
DISK_FMT: "qcow2"
2024-01-14 17:16:02 +01:00
devices:
- /dev/kvm
2024-12-01 16:07:23 +00:00
- /dev/net/tun
2024-01-14 17:16:02 +01:00
cap_add:
- NET_ADMIN
ports:
- 8006:8006
stop_grace_period: 2m
2025-02-25 13:04:48 +02:00
volumes:
- ./scripts:/oem
2025-02-26 13:23:20 +02:00
- ./custom.xml:/custom.xml
2025-03-31 07:16:25 +00:00
- ./custom.iso:/custom.iso
2025-02-26 13:23:20 +02:00
2025-03-31 07:16:25 +00:00
windows-installed:
image: $IMAGE_NAME:$IMAGE_VERSION
container_name: windows-installed
privileged: true
healthcheck:
test: "[ -f /storage/ready ] || exit 1"
interval: 30s
retries: 20
start_period: 60s
timeout: 2s
environment:
VERSION: "11"
USERNAME: "bill"
PASSWORD: "gates"
devices:
- /dev/kvm
- /dev/net/tun
cap_add:
- NET_ADMIN
ports:
- 8006:8006
stop_grace_period: 2m