feat:优化适配sscms
This commit is contained in:
11
apps/sscms/latest/.env.sample
Normal file
11
apps/sscms/latest/.env.sample
Normal file
@@ -0,0 +1,11 @@
|
||||
CONTAINER_NAME="sscms"
|
||||
PANEL_APP_PORT_HTTP="40221"
|
||||
PANEL_DB_HOST="postgresql"
|
||||
PANEL_DB_HOST_NAME="postgresql"
|
||||
PANEL_DB_NAME="sscms_23w7b4"
|
||||
PANEL_DB_PORT="5432"
|
||||
PANEL_DB_TYPE="postgresql"
|
||||
PANEL_DB_USER="sscms_PkXRtG"
|
||||
PANEL_DB_USER_PASSWORD="sscms_k3StZP"
|
||||
SSCMS_SECURITY_KEY="e2a3d303-ac9b-41ff-9154-930710af0845"
|
||||
SSCMS_REDIS_CONNECTION_STRING=""
|
||||
@@ -40,11 +40,25 @@ additionalProperties:
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: 8080
|
||||
- default: 40221
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
type: number
|
||||
- default: 'e2a3d303-ac9b-41ff-9154-930710af0845'
|
||||
edit: true
|
||||
envKey: SSCMS_SECURITY_KEY
|
||||
labelEn: Communication key (GUID string)
|
||||
labelZh: 通信密钥 (GUID 字符串)
|
||||
required: true
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: SSCMS_REDIS_CONNECTION_STRING
|
||||
labelEn: Redis Connection Information (redis:6379,password=123456)
|
||||
labelZh: Redis 连接信息 (redis:6379,password=123456)
|
||||
required: false
|
||||
type: text
|
||||
|
||||
@@ -1,23 +1,27 @@
|
||||
version: '3.9'
|
||||
version: '3'
|
||||
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
|
||||
sscms:
|
||||
image: sscms/core:latest
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:8080"
|
||||
volumes:
|
||||
- ./data:/app/wwwroot
|
||||
environment:
|
||||
- SSCMS_SECURITY_KEY=${SSCMS_SECURITY_KEY}
|
||||
- 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}
|
||||
- SSCMS_REDIS_CONNECTION_STRING=${SSCMS_REDIS_CONNECTION_STRING}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user