This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (55 loc) · 1.77 KB
/
docker-compose.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
version: "3"
services:
db:
image: postgres:12.2
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
app:
image: mattermost/mattermost-team-edition:release-5.22
restart: unless-stopped
volumes:
- ./create-access-token.sh:/create-access-token.sh:ro
- ./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
- /etc/localtime:/etc/localtime:ro
environment:
- MM_USERNAME=mmuser
- MM_PASSWORD=mmuser_password
- MM_DBNAME=mattermost
- MM_SQLSETTINGS_DATASOURCE=postgres://mmuser:mmuser_password@db:5432/mattermost?sslmode=disable&connect_timeout=10
web:
image: nginx:1.17.9-alpine
ports:
- 80:80
- 443:443
restart: unless-stopped
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./volumes/web/cert:/cert:ro
- /etc/localtime:/etc/localtime:ro
mongodb:
image: mongo:4.2.5
restart: unless-stopped
environment:
- MONGO_INITDB_DATABASE=ltijs
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
volumes:
- ./init-mongodb.js:/docker-entrypoint-initdb.d/init-mongodb.js:ro
- /etc/localtime:/etc/localtime:ro
mattermost-lti:
build: mattermost-lti
restart: unless-stopped
env_file:
- .env
volumes:
- /etc/localtime:/etc/localtime:ro