forked from MTES-MCT/mattermost-buildpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (67 loc) · 1.64 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
61
62
63
64
65
66
67
68
version: '3.8'
services:
postgres:
image: postgres
networks:
- mattermost_network
env_file: .env
restart: 'always'
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init-user-db/postgresql/init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh:ro
# mysql:
# image: mysql
# command: --default-authentication-plugin=mysql_native_password
# networks:
# - mattermost_network
# env_file: .env
# restart: 'always'
# ports:
# - 3306:3306
# volumes:
# - mysql_data:/var/lib/mysql
# - ./init-user-db/mysql/init-user-db.sql:/docker-entrypoint-initdb.d/init-user-db.sql:ro
s3:
image: minio/minio
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
command: server /data
volumes:
- s3_data:/data
networks:
- mattermost_network
restart: 'always'
ports:
- 9000:9000
smtp:
image: mailhog/mailhog
ports:
- 1025:1025
- 8025:8025
mattermost:
build: .
networks:
- mattermost_network
volumes:
- .:/buildpack
- cache:/cache
- build:/build
- env:/env
- app:/app
env_file: .env
ports:
- 8065:8065
depends_on:
- postgres
# - mysql
volumes:
postgres_data:
mysql_data:
cache:
build:
env:
app:
s3_data:
networks:
mattermost_network: