群晖搭建mattermost
安装mariadb
群晖安装mariadb,mariadb启动tcp连接; 如启动后的连接:127.0.0.1:3306
docker安装
- 进入docker,搜索mattermost,下载mattermost-team-edition镜像;
- 完成后在docker文件夹新建一个mattermost,在mattermost下面新建 config、data、logs、plugins、client、indexes 文件夹
- docker中文件夹设置依次为
- /volume1/docker/mattermost/config:/mattermost/config:rw
- /volume1/docker/mattermost/data:/mattermost/data:rw
- /volume1/docker/mattermost/logs:/mattermost/logs:rw
- /volume1/docker/mattermost/plugins:/mattermost/plugins:rw
- /volume1/docker/mattermost/client:/mattermost/client/plugins:rw
- /volume1/docker/mattermost/indexes:/mattermost/bleve-indexes:rw
- 端口设置,自行设置
- 环境设置依次为
- TZ=Asia/Shanghai
- DB_PORT_NUMBER=3306
- MM_SQLSETTINGS_DRIVERNAME=mysql
- MM_USERNAME=mmuser
- MM_PASSWORD=mmuser_password
- MM_DBNAME=mattermost
- MM_SQLSETTINGS_DATASOURCE=mmuser:mmuser_password@tcp(127.0.0.1:3306)/mattermost?charset=utf8mb4,utf8&readTimeout=30s&writeTimeout=30s
上面的mmuser可以通过phpmyadmin进入mariadb创建;
评论区