mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
feat: Add numerous new blueprint templates for various applications
This commit is contained in:
17
blueprints/windows/docker-compose.yml
Normal file
17
blueprints/windows/docker-compose.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
services:
|
||||
windows:
|
||||
image: dockurr/windows:4.00
|
||||
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
blueprints/windows/index.ts
Normal file
39
blueprints/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=2",
|
||||
"",
|
||||
"USERNAME=Dokploy",
|
||||
"PASSWORD=",
|
||||
"",
|
||||
"# https://github.com/dockur/windows?tab=readme-ov-file#how-do-i-select-the-windows-language",
|
||||
"LANGUAGE=English",
|
||||
];
|
||||
|
||||
return {
|
||||
domains,
|
||||
envs,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user