mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: macos template
This commit is contained in:
BIN
apps/dokploy/public/templates/macos.png
Normal file
BIN
apps/dokploy/public/templates/macos.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
16
apps/dokploy/templates/macos/docker-compose.yml
Normal file
16
apps/dokploy/templates/macos/docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
services:
|
||||
macos:
|
||||
image: dockurr/macos:1.14
|
||||
volumes:
|
||||
- macos-storage:/storage
|
||||
environment:
|
||||
- VERSION
|
||||
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:
|
||||
macos-storage:
|
||||
33
apps/dokploy/templates/macos/index.ts
Normal file
33
apps/dokploy/templates/macos/index.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
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: "macos",
|
||||
},
|
||||
];
|
||||
|
||||
const envs = [
|
||||
"# https://github.com/dockur/macos?tab=readme-ov-file#how-do-i-select-the-macos-version",
|
||||
"VERSION=15",
|
||||
"",
|
||||
"# Uncomment this if your PC/VM or etc does not support virtualization technology",
|
||||
"# KVM=N",
|
||||
"",
|
||||
"DISK_SIZE=64G",
|
||||
"RAM_SIZE=4G",
|
||||
"CPU_CORES=2",
|
||||
];
|
||||
|
||||
return {
|
||||
domains,
|
||||
envs,
|
||||
};
|
||||
}
|
||||
@@ -635,7 +635,7 @@ export const templates: TemplateData[] = [
|
||||
id: "windows",
|
||||
name: "Windows (dockerized)",
|
||||
version: "4.00",
|
||||
description: "Windows inside a Docker container.",
|
||||
description: "MacOS inside a Docker container.",
|
||||
logo: "windows.png",
|
||||
links: {
|
||||
github: "https://github.com/dockur/windows",
|
||||
@@ -645,4 +645,18 @@ export const templates: TemplateData[] = [
|
||||
tags: ["self-hosted", "open-source", "os"],
|
||||
load: () => import("./windows/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: "macos",
|
||||
name: "MacOS (dockerized)",
|
||||
version: "1.14",
|
||||
description: "MacOS inside a Docker container.",
|
||||
logo: "macos.png",
|
||||
links: {
|
||||
github: "https://github.com/dockur/macos",
|
||||
website: "",
|
||||
docs: "https://github.com/dockur/macos?tab=readme-ov-file#how-do-i-use-it",
|
||||
},
|
||||
tags: ["self-hosted", "open-source", "os"],
|
||||
load: () => import("./macos/index").then((m) => m.generate),
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
services:
|
||||
windows:
|
||||
image: dockurr/windows:4.00
|
||||
ports:
|
||||
- "8006:8006"
|
||||
volumes:
|
||||
- win-storage:/storage
|
||||
environment:
|
||||
|
||||
@@ -23,7 +23,7 @@ export function generate(schema: Schema): Template {
|
||||
"",
|
||||
"DISK_SIZE=64G",
|
||||
"RAM_SIZE=4G",
|
||||
"CPU_CORES=4",
|
||||
"CPU_CORES=2",
|
||||
"",
|
||||
"USERNAME=Dokploy",
|
||||
"PASSWORD=",
|
||||
|
||||
Reference in New Issue
Block a user