38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
services:
|
|
mattermost:
|
|
image: mattermost/mattermost-team-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:
|
|
- 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
|
|
volumes:
|
|
- /home/nick/configs/mattermost/db:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER=mattermost
|
|
- POSTGRES_PASSWORD=mattermost
|
|
- POSTGRES_DB=mattermost
|
|
user: 1000:1000
|
|
|
|
networks:
|
|
routing:
|
|
external: true
|
|
name: routing
|