ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] 参考链接:[https://www.zybuluo.com/zhongdao/note/1111997#%E5%BF%AB%E9%80%9Fdocker%E4%B8%80%E6%AD%A5%E5%AE%89%E8%A3%85%E8%AF%95%E7%94%A8](https://www.zybuluo.com/zhongdao/note/1111997#%E5%BF%AB%E9%80%9Fdocker%E4%B8%80%E6%AD%A5%E5%AE%89%E8%A3%85%E8%AF%95%E7%94%A8) [github](https://github.com/mattermost/mattermost-server) ## Docker安装试用 ``` docker run --name mattermost-preview -d --publish 8065:8065 mattermost/mattermost-preview ``` ## mattermost-server 编译部署 通过docker-compose一键编译部署。 需要下载源码: git clone ``` version: '2.4' services: mm-preview: image: mattermost/mattermost-preview volumes: - /home/mattermost-server/bin/config.json:/mm/mattermost/config/config_docker.json - /home/mattermost-server/bin/mattermost:/mm/mattermost/bin/mattermost - /home/mattermost-server/mattermost-data:/mm/mattermost-data networks: mynet: ipv4_address: 192.168.84.250 mysql: container_name: mm_mysql image: "mysql:5.7" restart: always volumes: - /home/mysql/data/:/var/lib/mysql - /home/mysql/conf:/etc/mysql/ environment: MYSQL_ROOT_HOST: "%" MYSQL_ROOT_PASSWORD: mostest MYSQL_PASSWORD: mostest MYSQL_USER: mmuser MYSQL_DATABASE: mattermost_test networks: mynet: ipv4_address: 192.168.84.246 mattermost-server-build: #编译 image: golang:1.14 restart: always tty: true environment: - GOPROXY=https://goproxy.io - GO111MODULE=on volumes: - /home/mattermost-server/:/home/mattermost-server working_dir: /home/mattermost-server/ command: go build -o bin/mattermost cmd/mattermost/main.go && echo "build success" networks: mynet: external: true ```