-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (83 loc) · 1.98 KB
/
docker-compose.yml
File metadata and controls
87 lines (83 loc) · 1.98 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
name: localhostings
services:
nginx:
container_name: nginx
image: nginx:1.25-alpine
env_file: ./secrets/env/.env.nginx
restart: unless-stopped
read_only: true
tmpfs:
- /var/run
volumes:
- ./secrets/etc/nginx:/etc/nginx
- nginx_log:/var/log/nginx
- nginx_cache:/var/cache/nginx
ports:
- 80:80
- 443:443
logging:
driver: json-file
options:
compress: "true"
max-size: "1024m"
max-file: "512"
postgres:
container_name: postgres
image: postgres:16.2-alpine
env_file: ./secrets/env/.env.postgres
restart: unless-stopped
read_only: true
tmpfs:
- /tmp
- /var/run/postgresql
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mattermost"]
interval: 10s
timeout: 5s
retries: 5
ports:
- 5432:5432
logging:
driver: json-file
options:
compress: "true"
max-size: "1024m"
max-file: "512"
mattermost:
container_name: mattermost
image: mattermost/mattermost-enterprise-edition:9.6.0
depends_on:
postgres:
condition: service_healthy
env_file: ./secrets/env/.env.mattermost
restart: unless-stopped
read_only: true
tmpfs:
- /tmp
- /var/tmp
volumes:
- ./secrets/config/mattermost:/mattermost/config
- mattermost_db:/mattermost/db
- mattermost_data:/mattermost/data
- mattermost_logs:/mattermost/logs
- mattermost_plugins:/mattermost/plugins
- mattermost_client_plugins:/mattermost/client/plugins
- mattermost_bleve_indexes:/mattermost/bleve-indexes
logging:
driver: json-file
options:
compress: "true"
max-size: "1024m"
max-file: "512"
volumes:
nginx_log:
nginx_cache:
postgres_data:
mattermost_db:
mattermost_data:
mattermost_logs:
mattermost_plugins:
mattermost_client_plugins:
mattermost_bleve_indexes: