1
0

Add dockurr/windows

This commit is contained in:
kriss
2024-08-06 21:39:49 +08:00
parent 2a86de9b0e
commit 0d3cdd7602
9 changed files with 648 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
CONTAINER_NAME="windows"
PANEL_APP_PORT_HTTP="8006"
DATA_PATH="./data"
RDP_PORT="3389"
IMAGE_ISO_FILE=""
MANUAL="N"
DISK_SIZE="256G"
RAM_SIZE="4G"
CPU_CORES="2"
USERNAME="docker"
PASSWORD=""

View File

@@ -0,0 +1,79 @@
additionalProperties:
formFields:
- default: 8006
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port (determined by the listening port)
labelZh: 端口 (由监听端口决定)
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: 3389
edit: true
envKey: RDP_PORT
labelEn: RDP Port
labelZh: 远程端口
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: IMAGE_ISO_FILE
labelEn: iso file
labelZh: iso 文件路径
required: true
type: text
- default: "N"
edit: true
envKey: MANUAL
labelEn: Manual Install
labelZh: 手动安装
required: true
type: select
values:
- label: Yes
value: "Y"
- label: No
value: "N"
- default: "256G"
edit: true
envKey: DISK_SIZE
labelEn: Disk Size
labelZh: 磁盘大小
required: true
type: text
- default: "4G"
edit: true
envKey: RAM_SIZE
labelEn: Ram Size
labelZh: 内存大小
required: true
type: text
- default: 2
edit: true
envKey: CPU_CORES
labelEn: Cpu Core Size
labelZh: cpu 核心数
required: true
type: number
- default: "docker"
edit: true
envKey: USERNAME
labelEn: Login Username
labelZh: 登录用户名
required: true
type: text
- default: ""
edit: true
envKey: PASSWORD
labelEn: Login Password
labelZh: 登录密码
required: false
type: password

View File

@@ -0,0 +1,31 @@
services:
windows:
image: dockurr/windows:3.12
container_name: ${CONTAINER_NAME}
environment:
MANUAL: ${MANUAL}
DISK_SIZE: ${DISK_SIZE}
RAM_SIZE: ${RAM_SIZE}
CPU_CORES: ${CPU_CORES}
USERNAME: ${USERNAME}
PASSWORD: ${PASSWORD}
volumes:
- ${DATA_PATH}:/storage
- ${IMAGE_ISO_FILE}:/custom.iso
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
networks:
- 1panel-network
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true