diff --git a/apps/mattermost/9.10.1/.env.sample b/apps/mattermost/9.10.1/.env.sample new file mode 100644 index 00000000..0ea3d544 --- /dev/null +++ b/apps/mattermost/9.10.1/.env.sample @@ -0,0 +1,22 @@ +CONTAINER_NAME="mattermost" +GITLAB_PKI_CHAIN_PATH="" +MATTERMOST_BLEVE_INDEXES_PATH="./data/bleve/indexes" +MATTERMOST_CLIENT_PLUGINS_PATH="./data/client/plugins" +MATTERMOST_CONFIG_PATH="./data/config" +MATTERMOST_CONTAINER_READONLY="false" +MATTERMOST_DATA_PATH="./data/data" +MATTERMOST_LOGS_PATH="./data/logs" +MATTERMOST_PLUGINS_PATH="./data/plugins" +MM_BLEVESETTINGS_INDEXDIR="/mattermost/bleve-indexes" +MM_SERVICESETTINGS_SITEURL="http://192.168.123.9:40271" +MM_SQLSETTINGS_DRIVERNAME="postgres" +PANEL_APP_PORT_CALLS=40272 +PANEL_APP_PORT_HTTP=40271 +PANEL_DB_HOST="postgresql" +PANEL_DB_HOST_NAME="postgresql" +PANEL_DB_NAME="mattermost" +PANEL_DB_PORT=5432 +PANEL_DB_TYPE="postgresql" +PANEL_DB_USER="mattermost" +PANEL_DB_USER_PASSWORD="mattermost" +TZ="Asia/Shanghai" diff --git a/apps/mattermost/9.10.1/data.yml b/apps/mattermost/9.10.1/data.yml new file mode 100644 index 00000000..2566510a --- /dev/null +++ b/apps/mattermost/9.10.1/data.yml @@ -0,0 +1,146 @@ +additionalProperties: + formFields: + - default: 40271 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: 40272 + edit: true + envKey: PANEL_APP_PORT_CALLS + labelEn: RTC Port + labelZh: RTC 服务端口 + required: true + rule: paramPort + type: number + - default: "false" + edit: true + envKey: MATTERMOST_CONTAINER_READONLY + labelEn: Read Only Container + labelZh: 只读容器 + required: false + type: select + values: + - label: "True" + value: "true" + - label: "False" + value: "false" + - default: "./data/config" + disabled: true + envKey: MATTERMOST_CONFIG_PATH + labelEn: Config Path + labelZh: 配置路径 + required: true + type: text + - default: "./data/data" + disabled: true + envKey: MATTERMOST_DATA_PATH + labelEn: Data Path + labelZh: 数据路径 + required: true + type: text + - default: "./data/logs" + disabled: true + envKey: MATTERMOST_LOGS_PATH + labelEn: Logs Path + labelZh: 日志路径 + required: true + type: text + - default: "./data/plugins" + disabled: true + envKey: MATTERMOST_PLUGINS_PATH + labelEn: Plugins Path + labelZh: 插件路径 + required: true + type: text + - default: "./data/client/plugins" + disabled: true + envKey: MATTERMOST_CLIENT_PLUGINS_PATH + labelEn: Client Plugins Path + labelZh: 客户端插件路径 + required: true + type: text + - default: "" + edit: true + envKey: GITLAB_PKI_CHAIN_PATH + labelEn: GitLab PKI Chain Path (Edit to remove comments in compose.yml to take effect) + labelZh: GitLab PKI 链路径 (编辑去除compose.yml里的注释生效) + required: false + type: text + - default: "./data/bleve/indexes" + edit: true + envKey: MATTERMOST_BLEVE_INDEXES_PATH + labelEn: Bleve Indexes Path + labelZh: Bleve 索引路径 + required: true + type: text + - default: "Asia/Shanghai" + edit: true + envKey: TZ + labelEn: Time Zone + labelZh: 时区 + required: true + type: text + - default: "postgres" + disabled: true + envKey: MM_SQLSETTINGS_DRIVERNAME + labelEn: SQL Driver Name + labelZh: SQL 驱动名称 + required: true + type: text + - default: "/mattermost/bleve-indexes" + disabled: true + envKey: MM_BLEVESETTINGS_INDEXDIR + labelEn: Bleve Index Directory + labelZh: Bleve 索引目录 + required: true + type: text + - default: "http://localhost:40271" + edit: true + envKey: MM_SERVICESETTINGS_SITEURL + labelEn: Site URL + labelZh: 站点 URL + required: true + rule: paramExtUrl + type: text + - default: postgresql + envKey: PANEL_DB_TYPE + labelEn: Database Service + labelZh: 数据库服务 + required: true + type: apps + child: + default: "" + envKey: PANEL_DB_HOST + required: true + type: service + values: + - label: PostgreSQL + value: postgresql + - default: mattermost + envKey: PANEL_DB_NAME + labelEn: Database + labelZh: 数据库名 + random: true + required: true + rule: paramCommon + type: text + - default: mattermost + envKey: PANEL_DB_USER + labelEn: User + labelZh: 数据库用户 + random: true + required: true + rule: paramCommon + type: text + - default: mattermost + envKey: PANEL_DB_USER_PASSWORD + labelEn: Password + labelZh: 数据库用户密码 + random: true + required: true + rule: paramComplexity + type: password \ No newline at end of file diff --git a/apps/mattermost/9.10.1/data/client/plugins/.gitkeep b/apps/mattermost/9.10.1/data/client/plugins/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/mattermost/9.10.1/data/config/.gitkeep b/apps/mattermost/9.10.1/data/config/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/mattermost/9.10.1/data/logs/.gitkeep b/apps/mattermost/9.10.1/data/logs/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/mattermost/9.10.1/data/plugins/.gitkeep b/apps/mattermost/9.10.1/data/plugins/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/mattermost/9.10.1/docker-compose.yml b/apps/mattermost/9.10.1/docker-compose.yml new file mode 100644 index 00000000..883261b7 --- /dev/null +++ b/apps/mattermost/9.10.1/docker-compose.yml @@ -0,0 +1,37 @@ +services: + mattermost: + image: "mattermost/mattermost-team-edition:9.10.1" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8065 + - ${PANEL_APP_PORT_CALLS}:8443/udp + - ${PANEL_APP_PORT_CALLS}:8443/tcp + security_opt: + - no-new-privileges:true + read_only: ${MATTERMOST_CONTAINER_READONLY} + tmpfs: + - /tmp + volumes: + - ${MATTERMOST_CONFIG_PATH}:/mattermost/config:rw + - ${MATTERMOST_DATA_PATH}:/mattermost/data:rw + - ${MATTERMOST_LOGS_PATH}:/mattermost/logs:rw + - ${MATTERMOST_PLUGINS_PATH}:/mattermost/plugins:rw + - ${MATTERMOST_CLIENT_PLUGINS_PATH}:/mattermost/client/plugins:rw + - ${MATTERMOST_BLEVE_INDEXES_PATH}:/mattermost/bleve-indexes:rw + # 删除以下行前的#号表示启用 + #- ${GITLAB_PKI_CHAIN_PATH}:/etc/ssl/certs/pki_chain.pem:ro + environment: + - TZ=${TZ} + - MM_SQLSETTINGS_DRIVERNAME=${MM_SQLSETTINGS_DRIVERNAME} + - MM_SQLSETTINGS_DATASOURCE=${MM_SQLSETTINGS_DRIVERNAME}://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}?sslmode=disable&connect_timeout=10 + - MM_BLEVESETTINGS_INDEXDIR=${MM_BLEVESETTINGS_INDEXDIR} + - MM_SERVICESETTINGS_SITEURL=${MM_SERVICESETTINGS_SITEURL} + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/mattermost/9.10.1/scripts/init.sh b/apps/mattermost/9.10.1/scripts/init.sh new file mode 100644 index 00000000..962ae2b4 --- /dev/null +++ b/apps/mattermost/9.10.1/scripts/init.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +chown -R 2000:2000 data \ No newline at end of file diff --git a/apps/mattermost/README.md b/apps/mattermost/README.md new file mode 100644 index 00000000..c70999c1 --- /dev/null +++ b/apps/mattermost/README.md @@ -0,0 +1,3 @@ +# [![Mattermost logo](https://user-images.githubusercontent.com/7205829/137170381-fe86eef0-bccc-4fdd-8e92-b258884ebdd7.png)](https://mattermost.com) + +[Mattermost](https://mattermost.com) 是一个开源平台,用于在整个软件开发生命周期中进行安全协作。 \ No newline at end of file diff --git a/apps/mattermost/data.yml b/apps/mattermost/data.yml new file mode 100644 index 00000000..b71a85d1 --- /dev/null +++ b/apps/mattermost/data.yml @@ -0,0 +1,19 @@ +name: Mattermost +tags: + - 实用工具 +title: 开源团队协作平台 +description: 开源团队协作平台 +additionalProperties: + key: mattermost + name: Mattermost + tags: + - Tool + shortDescZh: 开源团队协作平台 + shortDescEn: Open-source team collaboration platform + type: website + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://mattermost.com + github: https://github.com/mattermost/mattermost + document: https://docs.mattermost.com diff --git a/apps/mattermost/latest/.env.sample b/apps/mattermost/latest/.env.sample new file mode 100644 index 00000000..0ea3d544 --- /dev/null +++ b/apps/mattermost/latest/.env.sample @@ -0,0 +1,22 @@ +CONTAINER_NAME="mattermost" +GITLAB_PKI_CHAIN_PATH="" +MATTERMOST_BLEVE_INDEXES_PATH="./data/bleve/indexes" +MATTERMOST_CLIENT_PLUGINS_PATH="./data/client/plugins" +MATTERMOST_CONFIG_PATH="./data/config" +MATTERMOST_CONTAINER_READONLY="false" +MATTERMOST_DATA_PATH="./data/data" +MATTERMOST_LOGS_PATH="./data/logs" +MATTERMOST_PLUGINS_PATH="./data/plugins" +MM_BLEVESETTINGS_INDEXDIR="/mattermost/bleve-indexes" +MM_SERVICESETTINGS_SITEURL="http://192.168.123.9:40271" +MM_SQLSETTINGS_DRIVERNAME="postgres" +PANEL_APP_PORT_CALLS=40272 +PANEL_APP_PORT_HTTP=40271 +PANEL_DB_HOST="postgresql" +PANEL_DB_HOST_NAME="postgresql" +PANEL_DB_NAME="mattermost" +PANEL_DB_PORT=5432 +PANEL_DB_TYPE="postgresql" +PANEL_DB_USER="mattermost" +PANEL_DB_USER_PASSWORD="mattermost" +TZ="Asia/Shanghai" diff --git a/apps/mattermost/latest/data.yml b/apps/mattermost/latest/data.yml new file mode 100644 index 00000000..2566510a --- /dev/null +++ b/apps/mattermost/latest/data.yml @@ -0,0 +1,146 @@ +additionalProperties: + formFields: + - default: 40271 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: 40272 + edit: true + envKey: PANEL_APP_PORT_CALLS + labelEn: RTC Port + labelZh: RTC 服务端口 + required: true + rule: paramPort + type: number + - default: "false" + edit: true + envKey: MATTERMOST_CONTAINER_READONLY + labelEn: Read Only Container + labelZh: 只读容器 + required: false + type: select + values: + - label: "True" + value: "true" + - label: "False" + value: "false" + - default: "./data/config" + disabled: true + envKey: MATTERMOST_CONFIG_PATH + labelEn: Config Path + labelZh: 配置路径 + required: true + type: text + - default: "./data/data" + disabled: true + envKey: MATTERMOST_DATA_PATH + labelEn: Data Path + labelZh: 数据路径 + required: true + type: text + - default: "./data/logs" + disabled: true + envKey: MATTERMOST_LOGS_PATH + labelEn: Logs Path + labelZh: 日志路径 + required: true + type: text + - default: "./data/plugins" + disabled: true + envKey: MATTERMOST_PLUGINS_PATH + labelEn: Plugins Path + labelZh: 插件路径 + required: true + type: text + - default: "./data/client/plugins" + disabled: true + envKey: MATTERMOST_CLIENT_PLUGINS_PATH + labelEn: Client Plugins Path + labelZh: 客户端插件路径 + required: true + type: text + - default: "" + edit: true + envKey: GITLAB_PKI_CHAIN_PATH + labelEn: GitLab PKI Chain Path (Edit to remove comments in compose.yml to take effect) + labelZh: GitLab PKI 链路径 (编辑去除compose.yml里的注释生效) + required: false + type: text + - default: "./data/bleve/indexes" + edit: true + envKey: MATTERMOST_BLEVE_INDEXES_PATH + labelEn: Bleve Indexes Path + labelZh: Bleve 索引路径 + required: true + type: text + - default: "Asia/Shanghai" + edit: true + envKey: TZ + labelEn: Time Zone + labelZh: 时区 + required: true + type: text + - default: "postgres" + disabled: true + envKey: MM_SQLSETTINGS_DRIVERNAME + labelEn: SQL Driver Name + labelZh: SQL 驱动名称 + required: true + type: text + - default: "/mattermost/bleve-indexes" + disabled: true + envKey: MM_BLEVESETTINGS_INDEXDIR + labelEn: Bleve Index Directory + labelZh: Bleve 索引目录 + required: true + type: text + - default: "http://localhost:40271" + edit: true + envKey: MM_SERVICESETTINGS_SITEURL + labelEn: Site URL + labelZh: 站点 URL + required: true + rule: paramExtUrl + type: text + - default: postgresql + envKey: PANEL_DB_TYPE + labelEn: Database Service + labelZh: 数据库服务 + required: true + type: apps + child: + default: "" + envKey: PANEL_DB_HOST + required: true + type: service + values: + - label: PostgreSQL + value: postgresql + - default: mattermost + envKey: PANEL_DB_NAME + labelEn: Database + labelZh: 数据库名 + random: true + required: true + rule: paramCommon + type: text + - default: mattermost + envKey: PANEL_DB_USER + labelEn: User + labelZh: 数据库用户 + random: true + required: true + rule: paramCommon + type: text + - default: mattermost + envKey: PANEL_DB_USER_PASSWORD + labelEn: Password + labelZh: 数据库用户密码 + random: true + required: true + rule: paramComplexity + type: password \ No newline at end of file diff --git a/apps/mattermost/latest/data/client/plugins/.gitkeep b/apps/mattermost/latest/data/client/plugins/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/mattermost/latest/data/config/.gitkeep b/apps/mattermost/latest/data/config/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/mattermost/latest/data/logs/.gitkeep b/apps/mattermost/latest/data/logs/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/mattermost/latest/data/plugins/.gitkeep b/apps/mattermost/latest/data/plugins/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/mattermost/latest/docker-compose.yml b/apps/mattermost/latest/docker-compose.yml new file mode 100644 index 00000000..2acc1d1f --- /dev/null +++ b/apps/mattermost/latest/docker-compose.yml @@ -0,0 +1,37 @@ +services: + mattermost: + image: "mattermost/mattermost-team-edition:latest" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8065 + - ${PANEL_APP_PORT_CALLS}:8443/udp + - ${PANEL_APP_PORT_CALLS}:8443/tcp + security_opt: + - no-new-privileges:true + read_only: ${MATTERMOST_CONTAINER_READONLY} + tmpfs: + - /tmp + volumes: + - ${MATTERMOST_CONFIG_PATH}:/mattermost/config:rw + - ${MATTERMOST_DATA_PATH}:/mattermost/data:rw + - ${MATTERMOST_LOGS_PATH}:/mattermost/logs:rw + - ${MATTERMOST_PLUGINS_PATH}:/mattermost/plugins:rw + - ${MATTERMOST_CLIENT_PLUGINS_PATH}:/mattermost/client/plugins:rw + - ${MATTERMOST_BLEVE_INDEXES_PATH}:/mattermost/bleve-indexes:rw + # 删除以下行前的#号表示启用 + #- ${GITLAB_PKI_CHAIN_PATH}:/etc/ssl/certs/pki_chain.pem:ro + environment: + - TZ=${TZ} + - MM_SQLSETTINGS_DRIVERNAME=${MM_SQLSETTINGS_DRIVERNAME} + - MM_SQLSETTINGS_DATASOURCE=${MM_SQLSETTINGS_DRIVERNAME}://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}?sslmode=disable&connect_timeout=10 + - MM_BLEVESETTINGS_INDEXDIR=${MM_BLEVESETTINGS_INDEXDIR} + - MM_SERVICESETTINGS_SITEURL=${MM_SERVICESETTINGS_SITEURL} + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/mattermost/latest/scripts/init.sh b/apps/mattermost/latest/scripts/init.sh new file mode 100644 index 00000000..962ae2b4 --- /dev/null +++ b/apps/mattermost/latest/scripts/init.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +chown -R 2000:2000 data \ No newline at end of file diff --git a/apps/mattermost/logo.png b/apps/mattermost/logo.png new file mode 100644 index 00000000..0f148ae2 Binary files /dev/null and b/apps/mattermost/logo.png differ