forked from mattermost/mattermost-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
62 lines (57 loc) · 1.51 KB
/
docker-compose.dev.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
version: "3.7"
services:
proxy:
build:
context: proxy
dockerfile: Dockerfile.dev
tty: true
command: ["./wait-for-it.sh", "--timeout=0", "localhost:8000", "--", "nginx", "-g", "daemon off;"]
depends_on:
- app
network_mode: host
# To allow resolution of compose assigned app name on host - outside compose network.
extra_hosts:
mattermost-docker_app_1: 127.0.0.1
# For reference only (as all open with network_mode host).
ports:
- 443:443
- 80:80
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
DB_HOST: ${DB_HOST}
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
network_mode: host
ports:
- 8000:8000
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}
network_mode: host
ports:
- 53:53
volumes:
mm-dbdata:
mm-data: