-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
109 lines (103 loc) · 2.02 KB
/
docker-compose.prod.yml
File metadata and controls
109 lines (103 loc) · 2.02 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Yavio Platform — Docker Compose Production Overrides
# Layer on top of docker-compose.yml: docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
#
# Adds resource limits, log rotation, and tighter health check intervals.
services:
migrate:
deploy:
resources:
limits:
cpus: "0.5"
memory: 512M
reservations:
memory: 128M
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
postgres:
deploy:
resources:
limits:
cpus: "2"
memory: 2G
reservations:
memory: 512M
logging:
driver: json-file
options:
max-size: "50m"
max-file: "5"
healthcheck:
interval: 10s
timeout: 5s
retries: 3
clickhouse:
deploy:
resources:
limits:
cpus: "2"
memory: 4G
reservations:
memory: 1G
logging:
driver: json-file
options:
max-size: "50m"
max-file: "5"
healthcheck:
interval: 10s
timeout: 5s
retries: 3
ingest:
deploy:
resources:
limits:
cpus: "1"
memory: 1G
reservations:
memory: 256M
logging:
driver: json-file
options:
max-size: "25m"
max-file: "5"
healthcheck:
interval: 10s
timeout: 5s
retries: 3
dashboard:
deploy:
resources:
limits:
cpus: "1"
memory: 1G
reservations:
memory: 256M
logging:
driver: json-file
options:
max-size: "25m"
max-file: "5"
healthcheck:
interval: 15s
timeout: 5s
retries: 3
docs:
deploy:
resources:
limits:
cpus: "0.5"
memory: 512M
reservations:
memory: 128M
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
healthcheck:
interval: 30s
timeout: 5s
retries: 3