add mattermost
This commit is contained in:
74
Docker/mattermost/docker-compose.yml
Normal file
74
Docker/mattermost/docker-compose.yml
Normal file
@@ -0,0 +1,74 @@
|
||||
# https://docs.docker.com/compose/environment-variables/
|
||||
|
||||
version: "2.4"
|
||||
|
||||
services:
|
||||
# postgres:
|
||||
# image: postgres:13-alpine
|
||||
# restart: unless-stopped
|
||||
# security_opt:
|
||||
# - no-new-privileges:true
|
||||
# pids_limit: 100
|
||||
# read_only: true
|
||||
# tmpfs:
|
||||
# - /tmp
|
||||
# - /var/run/postgresql
|
||||
# volumes:
|
||||
# - /opt/app/mattermost/postgresql-data:/var/lib/postgresql/data
|
||||
# environment:
|
||||
# - TZ=Asia/Shanghai
|
||||
# - POSTGRES_USER=mattermost
|
||||
# - POSTGRES_PASSWORD=NhiMCYwlbA0F
|
||||
# - POSTGRES_DB=mattermost
|
||||
# networks:
|
||||
# nginx:
|
||||
# aliases:
|
||||
# - mattermost-postgres
|
||||
|
||||
|
||||
mattermost:
|
||||
# depends_on:
|
||||
# - postgres
|
||||
image: mattermost/mattermost-enterprise-edition:8.0
|
||||
restart: unless-stopped
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
pids_limit: 200
|
||||
read_only: false
|
||||
tmpfs:
|
||||
- /tmp
|
||||
volumes:
|
||||
## `sudo chown -R 2000:2000 ./volumes/app/mattermost`.
|
||||
- ./data/config:/mattermost/config:rw
|
||||
- ./data/data:/mattermost/data:rw
|
||||
- ./data/logs:/mattermost/logs:rw
|
||||
- ./data/plugins:/mattermost/plugins:rw
|
||||
- ./data/client/plugins:/mattermost/client/plugins:rw
|
||||
- ./data/bleve-indexes:/mattermost/bleve-indexes:rw
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
|
||||
# necessary Mattermost options/variables (see env.example)
|
||||
- MM_SQLSETTINGS_DRIVERNAME=postgres
|
||||
- MM_SQLSETTINGS_DATASOURCE=postgres://mattermost:NhiMCYwlbA0F@postgres-public:5432/mattermost?sslmode=disable&connect_timeout=10
|
||||
|
||||
# necessary for bleve
|
||||
- MM_BLEVESETTINGS_INDEXDIR=/mattermost/bleve-indexes ## Bleve index (inside the container)
|
||||
|
||||
# additional settings
|
||||
- MM_SERVICESETTINGS_SITEURL=https://chat.cc.bi:3000
|
||||
# ports:
|
||||
# - 8065:8065
|
||||
# chat port
|
||||
# - 8443:8443/udp
|
||||
# - 8443:8443/tcp
|
||||
networks:
|
||||
nginx:
|
||||
aliases:
|
||||
- mattermost
|
||||
|
||||
networks:
|
||||
nginx:
|
||||
external: true
|
||||
|
||||
# 先按照官方的方式启动,然后再修改配置文件
|
||||
Reference in New Issue
Block a user