This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mattermost.yml
62 lines (56 loc) · 1.61 KB
/
mattermost.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# chown 2000:2000 data plugins config
version: "3.7"
services:
app:
image: mattermost/mattermost-prod-app:${VERSION:-5.23.0}
volumes:
- ${VOLUME_PATH}data:/mattermost/data
- ${VOLUME_PATH}config:/mattermost/config
- ${VOLUME_PATH}plugins:/mattermost/plugins
environment:
- MM_USERNAME=mattermost
- MM_PASSWORD=myp@ssw0rd
- MM_DBNAME=mattermost
- MM_SERVICESETTINGS_SITEURL=${SCHEME:-http}://${DOMAIN:-mattermost.localhost}
- MM_LOCALIZATIONSETTINGS_DEFAULTCLIENTLOCALE=${LOCALE:-fr}
- MM_LOCALIZATIONSETTINGS_AVAILABLELOCALES=${LOCALE:-fr}
- MM_EMAILSETTINGS_ENABLEPREVIEWMODEBANNER=FALSE
- MM_EMAILSETTINGS_SMTPUSERNAME=${SMTP_USERNAME}
- MM_EMAILSETTINGS_SMTPPASSWORD=${SMTP_PASSWORD}
- MM_EMAILSETTINGS_SMTPSERVER=${SMTP_SERVER}
- MM_EMAILSETTINGS_SMTPPORT=${SMTP_PORT}
- MM_PLUGINSETTINGS_ENABLEUPLOADS=${ENABLE_PLUGINS:-true}
networks:
- internal
web:
image: mattermost/mattermost-prod-web:${VERSION-5.20.2}
deploy:
labels:
- traefik.port=80
- traefik.enable=true
- traefik.frontend.rule=Host:${DOMAIN:-mattermost.localhost}
networks:
- internal
- traefik
db:
image: postgres:9.6-alpine
volumes:
- ${VOLUME_PATH}db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=mattermost
- POSTGRES_PASSWORD=myp@ssw0rd
- POSTGRES_DB=mattermost
networks:
- internal
volumes:
data:
config:
plugins:
db:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net