feat: windows os template

This commit is contained in:
sashagoncharov19 2024-10-27 21:12:04 +00:00
parent bbef99c3c2
commit adea440931
4 changed files with 72 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

View File

@ -631,4 +631,18 @@ export const templates: TemplateData[] = [
tags: ["self-hosted", "open-source", "manager"],
load: () => import("./hi-events/index").then((m) => m.generate),
},
{
id: "windows",
name: "Windows (dockerized)",
version: "4.00",
description: "Windows inside a Docker container.",
logo: "windows.png",
links: {
github: "https://github.com/dockur/windows",
website: "",
docs: "https://github.com/dockur/windows?tab=readme-ov-file#how-do-i-use-it",
},
tags: ["self-hosted", "open-source", "os"],
load: () => import("./windows/index").then((m) => m.generate),
},
];

View File

@ -0,0 +1,19 @@
services:
windows:
image: dockurr/windows:4.00
ports:
- "8006:8006"
volumes:
- win-storage:/storage
environment:
- VERSION
- KVM
devices:
# If in .env string 'KVM=N' is not commented, you need to comment line below
- /dev/kvm
cap_add:
- NET_ADMIN
stop_grace_period: 2m
volumes:
win-storage:

View File

@ -0,0 +1,39 @@
import {
type DomainSchema,
type Schema,
type Template,
generateRandomDomain,
} from "../utils";
export function generate(schema: Schema): Template {
const domains: DomainSchema[] = [
{
host: generateRandomDomain(schema),
port: 8006,
serviceName: "windows",
},
];
const envs = [
"# https://github.com/dockur/windows?tab=readme-ov-file#how-do-i-select-the-windows-version",
"VERSION=win11",
"",
"# Uncomment this if your PC/VM or etc does not support virtualization technology",
"# KVM=N",
"",
"DISK_SIZE=64G",
"RAM_SIZE=4G",
"CPU_CORES=4",
"",
"USERNAME=Dokploy",
"PASSWORD=",
"",
"# https://github.com/dockur/windows?tab=readme-ov-file#how-do-i-select-the-windows-language",
"LANGUAGE=English",
];
return {
domains,
envs,
};
}