feat: 新增 Microsoft SQL Server (#1303)

This commit is contained in:
wanghe
2024-04-24 15:29:54 +08:00
committed by GitHub
parent ddafa82215
commit 51616d6931
7 changed files with 71 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
additionalProperties:
formFields:
- default: 1433
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "mssql"
edit: true
envKey: MSSQL_SA_PASSWORD
labelEn: SA PASSWORD
labelZh: SA 用户密码(至少包含8个字符,且需包含大写字母、小写字母、数字和特殊字符中的三种)
random: true
required: true
rule: paramCommon
type: text
+19
View File
@@ -0,0 +1,19 @@
services:
mssql:
container_name: ${CONTAINER_NAME}
image: mcr.microsoft.com/mssql/server:2022-latest
restart: unless-stopped
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:1433
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=${MSSQL_SA_PASSWORD}
volumes:
- ./data:/var/opt/mssql/data
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
chown -R 10001:10001 data