mattermost

This commit is contained in:
naterfute
2025-03-31 20:42:55 -07:00
parent 2ae92dcc38
commit b7e9b7fc39
2 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
# https://docs.docker.com/compose/environment-variables/
services:
postgres:
image: postgres:17
restart: unless-stopped
security_opt:
- no-new-privileges:true
pids_limit: 100
read_only: true
tmpfs:
- /tmp
- /var/run/postgresql
volumes:
- ${POSTGRES_DATA_PATH}:/var/lib/postgresql/data
environment:
- TZ
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
mattermost:
depends_on:
- postgres
image: mattermost/mattermost-team-edition:9.11.6
restart: unless-stopped
security_opt:
- no-new-privileges:true
pids_limit: 200
read_only: ${MATTERMOST_CONTAINER_READONLY}
tmpfs:
- /tmp
volumes:
- mattermostconf:/mattermost/config:rw
- mattermostdata:/mattermost/data:rw
- mattermostlogs:/mattermost/logs:rw
- mattermostplugsin:/mattermost/plugins:rw
- mattermostclientplugins:/mattermost/client/plugins:rw
- mattermostBleveIndexes:/mattermost/bleve-indexes:rw
environment:
- DOMAIN=mm.example.com
- TZ
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- MM_SQLSETTINGS_DRIVERNAME
- MM_SQLSETTINGS_DATASOURCE
- MM_BLEVESETTINGS_INDEXDIR
- MM_SERVICESETTINGS_SITEURL
- APP_PORT

View File

@@ -0,0 +1,19 @@
[variables]
main_domain = "${domain}"
[config]
env = [
"POSTGRES_USER=mmuser",
"POSTGRES_PASSWORD=mmuser_password",
"POSTGRES_DB=mattermost",
"MM_SQLSETTINGS_DRIVERNAME=postgres",
"MM_SQLSETTINGS_DATASOURCE=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable&connect_timeout=10",
"APP_PORT=8065",
"TZ=UTC",
]
mounts = []
[[config.domains]]
serviceName = "mattermost"
port = 8065
host = "${main_domain}"