'mssql2017-2019' (#1580)

Co-authored-by: feixue <feixue@esign.cn>
This commit is contained in:
imblowsnow 2024-06-13 15:08:39 +08:00 committed by GitHub
parent 512f9d56bd
commit c081746425
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 80 additions and 0 deletions

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

View File

View File

@ -0,0 +1,19 @@
services:
mssql:
container_name: ${CONTAINER_NAME}
image: mcr.microsoft.com/mssql/server:2017-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

View File

@ -0,0 +1,3 @@
#!/bin/bash
chown -R 10001:10001 data

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

View File

View File

@ -0,0 +1,19 @@
services:
mssql:
container_name: ${CONTAINER_NAME}
image: mcr.microsoft.com/mssql/server:2019-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

View File

@ -0,0 +1,3 @@
#!/bin/bash
chown -R 10001:10001 data