forked from mattermost/mattermost-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.demo.yml
61 lines (55 loc) · 1.61 KB
/
docker-compose.demo.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
version: "3.7"
services:
proxy:
build:
context: ./proxy
dockerfile: Dockerfile.demo
tty: true
command: ["./wait-for-it.sh", "--timeout=0", "mattermost-docker_app_1:8000", "--", "nginx", "-g", "daemon off;"]
depends_on:
- app
ports:
- '8000:443'
restart: unless-stopped
app:
build:
context: app
args:
- edition=team
volumes:
- mm-data:/mattermost/config:rw
- mm-data:/mattermost/data:rw
- mm-data:/mattermost/logs:rw
- mm-data:/mattermost/plugins:rw
- mm-data:/mattermost/client/plugins:rw
- /etc/localtime:/etc/localtime:ro
environment:
# set same as db credentials and dbname
MM_USERNAME: ${MM_USERNAME}
MM_PASSWORD: ${MM_PASSWORD}
MM_DBNAME: ${MM_DBNAME}
# in case your config is not in default location
#- MM_CONFIG=/mattermost/config/config.json
extra_hosts:
danvers: 172.21.0.1
dns:
- 172.23.0.100 # Mattermost's (GO's) DNS resolution for extra_hosts (e.g., danvers, above) is slow in some environments (initial Docker DNS lookup timeout?), so utilise UI's custom DNS server (which has an immediate entry for servers we need, e.g. danvers).
restart: unless-stopped
db:
build: db
read_only: true
volumes:
- mm-dbdata:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
restart: unless-stopped
volumes:
mm-dbdata:
mm-data:
networks:
default:
external:
name: ui_network