1
0

feat:更新windows

This commit is contained in:
okxlin
2024-08-14 02:45:12 +08:00
parent b428111e84
commit f1c63051db
6 changed files with 198 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
CONTAINER_NAME="windows"
CPU_CORES=2
DATA_PATH="./data/storage"
DISK_SIZE="30GB"
KEYBOARD="zh-CN"
LANGUAGE="zh-CN"
MANUAL="N"
PANEL_APP_PORT_HTTP=40286
PASSWORD="password"
RAM_SIZE="4GB"
RDP_PORT=3389
REGION="SG"
RESTART_POLICY="always"
USERNAME="docker"
VERSION="ltsc10"

View File

@@ -0,0 +1,116 @@
additionalProperties:
formFields:
- default: "ltsc10"
edit: true
envKey: VERSION
labelEn: Windows version for online download (also available at https://example.com/win.iso)
labelZh: 在线下载的 Windows 版本 (也可 https://example.com/win.iso)
required: true
type: text
- default: "40286"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "./data/storage"
edit: true
envKey: DATA_PATH
labelEn: Data Path
labelZh: 数据路径
required: true
type: text
- default: "3389"
edit: true
envKey: RDP_PORT
labelEn: RDP Port
labelZh: RDP 远程端口
required: true
rule: paramPort
type: number
- default: "N"
edit: true
envKey: MANUAL
labelEn: Manual Install
labelZh: 手动安装
required: true
type: select
values:
- label: "Yes"
value: "Y"
- label: "No"
value: "N"
- default: "30GB"
edit: true
envKey: DISK_SIZE
labelEn: Disk Size
labelZh: 磁盘大小
required: true
type: text
- default: "4GB"
edit: true
envKey: RAM_SIZE
labelEn: RAM Size
labelZh: 内存大小
required: true
type: text
- default: "2"
edit: true
envKey: CPU_CORES
labelEn: CPU Cores
labelZh: CPU 核心数
required: true
type: number
- default: "docker"
edit: true
envKey: USERNAME
labelEn: Login Username (This setting is not valid for non-matching system images)
labelZh: 登录用户名 (非匹配的系统镜像则此设置无效)
required: true
type: text
- default: "password"
edit: true
envKey: PASSWORD
labelEn: Login Password (This setting is not valid for non-matching system images)
labelZh: 登录密码 (非匹配的系统镜像则此设置无效)
random: true
required: true
rule: paramComplexity
type: password
- default: "always"
edit: true
envKey: RESTART_POLICY
labelEn: Restart Policy
labelZh: 重启策略
required: true
type: select
values:
- label: "Always"
value: "always"
- label: "Unless-stopped"
value: "unless-stopped"
- label: "No"
value: "no"
- default: "zh-CN"
edit: true
envKey: LANGUAGE
labelEn: Language
labelZh: 语言
required: true
type: text
- default: "SG"
edit: true
envKey: REGION
labelEn: Region
labelZh: 区域
required: true
type: text
- default: "zh-CN"
edit: true
envKey: KEYBOARD
labelEn: Keyboard Layout
labelZh: 键盘布局
required: true
type: text

View File

@@ -0,0 +1,35 @@
services:
windows:
image: "dockurr/windows:latest"
container_name: ${CONTAINER_NAME}
restart: ${RESTART_POLICY}
networks:
- 1panel-network
environment:
VERSION: ${VERSION}
LANGUAGE: ${LANGUAGE}
REGION: ${REGION}
KEYBOARD: ${KEYBOARD}
MANUAL: ${MANUAL}
DISK_SIZE: ${DISK_SIZE}
RAM_SIZE: ${RAM_SIZE}
CPU_CORES: ${CPU_CORES}
USERNAME: ${USERNAME}
PASSWORD: ${PASSWORD}
volumes:
- ${DATA_PATH}:/storage
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- ${PANEL_APP_PORT_HTTP}:8006
- ${RDP_PORT}:3389/tcp
- ${RDP_PORT}:3389/udp
stop_grace_period: 2m
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true