diff --git a/apps/jumpserver/4.2.0/data.yml b/apps/jumpserver/4.2.0/data.yml new file mode 100644 index 00000000..b7f25304 --- /dev/null +++ b/apps/jumpserver/4.2.0/data.yml @@ -0,0 +1,133 @@ +additionalProperties: + formFields: + - default: vYneAbsXUhe4BghEeedNL7nfWLwaTTmhnwQMvjYOIG25Ofzghk + edit: true + envKey: SECRET_KEY + labelEn: Cryptographic signing + labelZh: 加密签名 + required: true + type: password + - default: K1ffDfLSIK8SV2PZj6VaxOiv8KuawlJK + edit: true + envKey: BOOTSTRAP_TOKEN + labelEn: Bootstrap token + labelZh: 认证令牌 + required: true + type: password + - default: "false" + envKey: DEBUG + labelEn: Debug mode + labelZh: 调试模式 + required: true + type: select + values: + - label: 开启 + value: "true" + - label: 关闭 + value: "false" + - default: "ERROR" + envKey: LOG_LEVEL + labelEn: Log level + labelZh: 日志级别 + required: true + type: select + values: + - label: DEBUG + value: "DEBUG" + - label: INFO + value: "INFO" + - label: WARNING + value: "WARNING" + - label: ERROR + value: "ERROR" + - label: CRITICAL + value: "CRITICAL" + - default: postgresql + envKey: DB_ENGINE + labelEn: Database Engine + labelZh: 数据库引擎 + required: true + type: select + values: + - label: PostgreSQL + value: postgresql + - label: MySQL + value: mysql + - 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: MariaDB + value: mariadb + - default: jumpserver + envKey: PANEL_DB_NAME + labelEn: Database + labelZh: 数据库名 + random: true + required: true + rule: paramCommon + type: text + - default: jumpserver + envKey: PANEL_DB_USER + labelEn: Database User + labelZh: 数据库用户 + random: true + required: true + rule: paramCommon + type: text + - default: jumpserver + envKey: PANEL_DB_USER_PASSWORD + labelEn: Database User Password + labelZh: 数据库用户密码 + random: true + required: true + rule: paramComplexity + type: password + - default: "" + edit: true + envKey: REDIS_HOST + key: redis + labelEn: Redis Service + labelZh: 缓存服务服务 + required: true + type: service + - default: "" + edit: true + envKey: PANEL_REDIS_ROOT_PASSWORD + labelEn: Redis Service Password + labelZh: 缓存服务服务密码 + required: true + rule: paramCommon + type: password + - default: 8080 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Web Port + labelZh: Web 端口 + required: true + rule: paramPort + type: number + - default: 2222 + edit: true + envKey: SSH_PORT + labelEn: SSH port + labelZh: SSH 端口 + required: true + rule: paramPort + type: number + - default: "" + edit: true + envKey: DOMAINS + labelEn: DOMAINS + labelZh: DOMAINS + type: text \ No newline at end of file diff --git a/apps/jumpserver/4.2.0/docker-compose.yml b/apps/jumpserver/4.2.0/docker-compose.yml new file mode 100644 index 00000000..e3d2c280 --- /dev/null +++ b/apps/jumpserver/4.2.0/docker-compose.yml @@ -0,0 +1,33 @@ +services: + jumpserver: + image: jumpserver/jms_all:v4.2.0 + container_name: ${CONTAINER_NAME} + privileged: true + restart: always + labels: + createdBy: "Apps" + environment: + SECRET_KEY: ${SECRET_KEY} + BOOTSTRAP_TOKEN: ${BOOTSTRAP_TOKEN} + DEBUG: ${DEBUG:-FALSE} + LOG_LEVEL: ${LOG_LEVEL} + DB_ENGINE: ${DB_ENGINE} + DB_HOST: ${PANEL_DB_HOST} + DB_PORT: ${PANEL_DB_PORT} + DB_USER: ${PANEL_DB_USER} + DB_PASSWORD: ${PANEL_DB_USER_PASSWORD} + DB_NAME: ${PANEL_DB_NAME} + REDIS_HOST: ${REDIS_HOST} + REDIS_PORT: 6379 + REDIS_PASSWORD: ${PANEL_REDIS_ROOT_PASSWORD} + DOMAINS: ${DOMAINS:-} + ports: + - ${PANEL_APP_PORT_HTTP}:80 + - ${SSH_PORT}:2222 + volumes: + - ./data/:/opt/data + networks: + - 1panel-network +networks: + 1panel-network: + external: true \ No newline at end of file