From 774130a4a881b07abb6352d6e086fd025aea733f Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Thu, 1 Sep 2022 20:28:47 +0300 Subject: [PATCH] Add mattermost --- matterrmost/docker-compose.yml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 matterrmost/docker-compose.yml diff --git a/matterrmost/docker-compose.yml b/matterrmost/docker-compose.yml new file mode 100644 index 0000000..1ef481e --- /dev/null +++ b/matterrmost/docker-compose.yml @@ -0,0 +1,40 @@ +version: '3.9' + +services: + mattermost: + image: mattermost/mattermost-enterprise-edition + restart: unless-stopped + volumes: + - /home/nick/configs/mattermost/config:/mattermost/config + - /home/nick/configs/mattermost/data:/mattermost/data + - /home/nick/configs/mattermost/logs:/mattermost/logs + - /home/nick/configs/mattermost/plugins:/mattermost/plugins + - /home/nick/configs/mattermost/client/plugins:/mattermost/client/plugins + - /home/nick/configs/mattermost/bleve-indexes:/mattermost/bleve-indexes + environment: + - TZ=Europe/Athens + - MM_SERVICESETTINGS_SITEURL=${URL} + - MM_BLEVESETTINGS_INDEXDIR=/mattermost/bleve-indexes + - MM_SQLSETTINGS_DRIVERNAME=postgres + - MM_SQLSETTINGS_DATASOURCE=postgres://mattermost:mattermost@db:5432/mattermost?sslmode=disable + networks: + - default + - routing + depends_on: + - db + + db: + image: postgres:13 + restart: unless-stopped + environment: + - POSTGRES_USER=mattermost + - POSTGRES_PASSWORD=mattermost + - POSTGRES_DB=mattermost + volumes: + - /home/nick/configs/mattermost/db:/var/lib/postgresql/data + user: 1000:1000 + +networks: + routing: + external: true + name: routing