-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMattermost.YAML
More file actions
81 lines (70 loc) · 3.16 KB
/
Mattermost.YAML
File metadata and controls
81 lines (70 loc) · 3.16 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
```
version: "3.9"
services:
mattermost-db:
image: postgres
container_name: Mattermost-DB
hostname: mattermost-db
security_opt:
- no-new-privileges:true
pids_limit: 100
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "mattermost", "-U", "mattermostuser"]
interval: 10s
timeout: 5s
retries: 5
user: 1026:100
volumes:
- /volume1/docker/mattermost/db:/var/lib/postgresql/data:rw
environment:
- POSTGRES_DB=mattermost
- POSTGRES_USER=mattermostuser
- POSTGRES_PASSWORD=mattermostpw
- TZ=Europe/Bucharest
restart: on-failure:5
mattermost:
image: mattermost/mattermost-team-edition:latest
container_name: Mattermost
hostname: mattermost
security_opt:
- no-new-privileges:true
pids_limit: 200
user: 1026:100
volumes:
- /volume1/docker/mattermost/config:/mattermost/config:rw
- /volume1/docker/mattermost/data:/mattermost/data:rw
- /volume1/docker/mattermost/logs:/mattermost/logs:rw
- /volume1/docker/mattermost/plugins:/mattermost/plugins:rw
- /volume1/docker/mattermost/client:/mattermost/client/plugins:rw
- /volume1/docker/mattermost/indexes:/mattermost/bleve-indexes:rw
environment:
- TZ=Europe/Bucharest
- MM_SQLSETTINGS_DRIVERNAME=postgres
- MM_SQLSETTINGS_DATASOURCE=postgres://mattermostuser:mattermostpw@mattermost-db:5432/mattermost?sslmode=disable&connect_timeout=10
- MM_BLEVESETTINGS_INDEXDIR=/mattermost/bleve-indexes
- MM_SERVICESETTINGS_SITEURL=https://chat.yourname.synology.me
ports:
- 8401:8065
restart: on-failure:5
depends_on:
mattermost-db:
condition: service_started
```
# Necessary edits to code
"user", "MM_SERVICESETTINGS_SITEURL" and "TZ" have to be edited for every instance of installation and can be unique to every user
# Timezone
TZ:
1. (eg. America/Phoenix for TZ).
#Site URL
MM_SERVICESETTINGS_SITEURL:
1. replace “https://chat.yourname.synology.me” with your own synology.me DDNS (previously created hostname).
# User
In order to find out the "user" value (which is composed of the User ID and Group ID in UID:GID format):
1. we needed to go to Control Panel/Task Scheduler/ Create/ Scheduled Task/ User-defined script.
2. Under the new window opened, there will be a 3 tabs (General, Schedule and Task Settings).
3. Under General, the Task field should be filled with “My UID and GID” and under User you should select your NAS user.
4. In the next tab “Schedule” select “Run on the following date” and select today’s date then select “Do not repeat”, select a time to run it.
5. On the next tab, “Task Settings” check the “Send run details by email” box and then add an email that can be reliably accessed.In the same tab, ad “id” as the user-defined script under the Run command section.
6. After doing this, press okay.
7. Go back to Control Panel/ Task Scheduler and select your newly created “My UID and GID” task then click on the “Run” tab and confirm the run.
8. An email will be sent to the one used in the previous step with both UID and GID values alongside additional information.