mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: windows os template
This commit is contained in:
parent
bbef99c3c2
commit
adea440931
BIN
apps/dokploy/public/templates/windows.png
Normal file
BIN
apps/dokploy/public/templates/windows.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 247 KiB |
@ -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),
|
||||
},
|
||||
];
|
||||
|
19
apps/dokploy/templates/windows/docker-compose.yml
Normal file
19
apps/dokploy/templates/windows/docker-compose.yml
Normal 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:
|
39
apps/dokploy/templates/windows/index.ts
Normal file
39
apps/dokploy/templates/windows/index.ts
Normal 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,
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user