-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.mattermost.yml
75 lines (71 loc) · 2.05 KB
/
docker-compose.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
63
64
65
66
67
68
69
70
71
72
73
74
75
version: "2"
services:
db:
build: db
restart: unless-stopped
volumes:
- ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data
# - /etc/localtime:/etc/localtime:ro
environment:
- POSTGRES_USER=mmuser
- POSTGRES_PASSWORD=mmuser_password
- POSTGRES_DB=mattermost
# uncomment the following to enable backup
# - AWS_ACCESS_KEY_ID=XXXX
# - AWS_SECRET_ACCESS_KEY=XXXX
# - WALE_S3_PREFIX=s3://BUCKET_NAME/PATH
# - AWS_REGION=us-east-1
app:
build:
context: app
# comment out for team edition
# dockerfile: Dockerfile-enterprise
restart: unless-stopped
volumes:
- ./volumes/app/mattermost/config:/mattermost/config:rw
- ./volumes/app/mattermost/data:/mattermost/data:rw
- ./volumes/app/mattermost/logs:/mattermost/logs:rw
- ./volumes/app/mattermost/plugins:/mattermost/plugins:rw
- ./volumes/app/mattermost/client-plugins:/mattermost/client/plugins:rw
- ./config.json:/mattermost/config/config.json
# - /etc/localtime:/etc/localtime:ro
environment:
# set same as db credentials and dbname
- MM_USERNAME=mmuser
- MM_PASSWORD=mmuser_password
- MM_DBNAME=mattermost
# in case your config is not in default location
- MM_CONFIG=/mattermost/config/config.json
links:
- db:db
web:
build: web
ports:
- "80:80"
- "443:443"
restart: unless-stopped
volumes:
# This directory must have cert files
- ./volumes/web/cert:/cert:ro
# - /etc/localtime:/etc/localtime:ro
links:
- app:app
- gif:gif
gif:
image: blacktop/scifgif:0.3.0
ports:
- "3993:3993"
restart: unless-stopped
environment:
- SCIFGIF_HOST=localhost
- SCIFGIF_TOKEN=sbcdqwohbpg73r6hddi4ka1xgo
command: -V
# xkcd:
# image: blacktop/scifgif:0.1.0
# ports:
# - "3994:3994"
# restart: unless-stopped
# environment:
# - SCIFGIF_HOST=localhost
# - SCIFGIF_PORT=3994
# - SCIFGIF_TOKEN=qy8eu83otf89bq5yqd3x8g9f8a