feat:添加mattermost到列表

This commit is contained in:
okxlin 2024-07-29 12:52:57 +08:00
parent 7e3b4ea0d6
commit 1cf829eb7c
19 changed files with 438 additions and 0 deletions

View File

@ -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"

View File

@ -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

View File

@ -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

View File

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

View File

@ -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) 是一个开源平台,用于在整个软件开发生命周期中进行安全协作。

19
apps/mattermost/data.yml Normal file
View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

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

BIN
apps/mattermost/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB