1
0

add sscms

This commit is contained in:
Anyexyz
2024-04-16 04:42:18 +00:00
parent 002612ed1e
commit 39df7c6776
5 changed files with 187 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
required: true
type: service
default: mysql
envKey: PANEL_DB_TYPE
labelEn: Database Service
labelZh: 数据库服务
required: true
type: apps
values:
- label: MySQL
value: mysql
- label: PostgreSQL
value: postgresql
- default: sscms
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: sscms
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: sscms
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

@@ -0,0 +1,23 @@
version: '3.9'
services:
sscms:
container_name: ${CONTAINER_NAME}
image: sscms/core:latest
volumes:
- ./data:/app/wwwroot
ports:
- ${PANEL_APP_PORT_HTTP}:8080
restart: always
environment:
- SSCMS_SECURITY_KEY=e2a3d303-ac9b-41ff-9154-930710af0845
- SSCMS_DATABASE_TYPE=${PANEL_DB_TYPE}
- SSCMS_DATABASE_HOST=${PANEL_DB_HOST}
- SSCMS_DATABASE_PORT=${PANEL_DB_PORT}
- SSCMS_DATABASE_NAME=${PANEL_DB_NAME}
- SSCMS_DATABASE_USER=${PANEL_DB_USER}
- SSCMS_DATABASE_PASSWORD=${PANEL_DB_USER_PASSWORD}
networks:
- 1panel-network
networks:
1panel-network:
external: true