-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
146 lines (140 loc) · 2.9 KB
/
docker-compose.prod.yml
File metadata and controls
146 lines (140 loc) · 2.9 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# OpenWatch Production Docker Compose Overlay
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
#
# This overlay applies production-specific settings on top of the base
# docker-compose.yml. It disables debug mode, enables HTTPS and FIPS,
# adds resource limits, and tightens health check intervals.
services:
database:
restart: always
deploy:
resources:
limits:
cpus: "2"
memory: 4G
reservations:
cpus: "0.5"
memory: 1G
healthcheck:
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
logging:
driver: json-file
options:
max-size: "50m"
max-file: "5"
redis:
restart: always
deploy:
resources:
limits:
cpus: "1"
memory: 2G
reservations:
cpus: "0.25"
memory: 256M
healthcheck:
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
logging:
driver: json-file
options:
max-size: "50m"
max-file: "5"
backend:
restart: always
environment:
OPENWATCH_DEBUG: "false"
OPENWATCH_REQUIRE_HTTPS: "true"
OPENWATCH_FIPS_MODE: "true"
OPENWATCH_LOG_LEVEL: "INFO"
OPENWATCH_SSH_STRICT_MODE: "true"
deploy:
resources:
limits:
cpus: "2"
memory: 4G
reservations:
cpus: "0.5"
memory: 1G
healthcheck:
interval: 15s
timeout: 5s
retries: 5
start_period: 30s
logging:
driver: json-file
options:
max-size: "100m"
max-file: "10"
worker:
restart: always
environment:
OPENWATCH_DEBUG: "false"
OPENWATCH_FIPS_MODE: "true"
OPENWATCH_SSH_STRICT_MODE: "true"
deploy:
resources:
limits:
cpus: "4"
memory: 8G
reservations:
cpus: "1"
memory: 2G
healthcheck:
interval: 15s
timeout: 10s
retries: 5
start_period: 30s
logging:
driver: json-file
options:
max-size: "100m"
max-file: "10"
celery-beat:
restart: always
environment:
OPENWATCH_DEBUG: "false"
OPENWATCH_FIPS_MODE: "true"
deploy:
resources:
limits:
cpus: "0.5"
memory: 512M
reservations:
cpus: "0.1"
memory: 128M
logging:
driver: json-file
options:
max-size: "50m"
max-file: "5"
frontend:
restart: always
ports:
- "443:443"
- "80:80"
deploy:
resources:
limits:
cpus: "1"
memory: 1G
reservations:
cpus: "0.25"
memory: 256M
healthcheck:
interval: 15s
timeout: 5s
retries: 5
start_period: 15s
logging:
driver: json-file
options:
max-size: "50m"
max-file: "5"