-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathdocker-compose-no-limits.yml
More file actions
26 lines (24 loc) · 1.01 KB
/
docker-compose-no-limits.yml
File metadata and controls
26 lines (24 loc) · 1.01 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
# Use like so:
#
# d/c -f docker-compose.yml -f docker-compose-no-limits.yml kill web
# d/c -f docker-compose.yml -f docker-compose-no-limits.yml rm -f web
# d/c -f docker-compose.yml -f docker-compose-no-limits.yml build web
# d/c -f docker-compose.yml -f docker-compose-no-limits.yml up -d web
# d/c -f docker-compose.yml -f docker-compose-no-limits.yml ps
#
# Don't forget to add default values in the Dockerfile, [0KW2UY3]
# and enable Nginx access_log buffering (nginx.conf).
services:
web:
environment:
# Set Nginx limits to high values, useful e.g. when testing performance.
TY_NGX_LIMIT_CONN_PER_IP: 9001 # max is 65535
TY_NGX_LIMIT_CONN_PER_SERVER: 9002
TY_NGX_LIMIT_REQ_PER_IP: 9990030
TY_NGX_LIMIT_REQ_PER_IP_BURST: 9990040
TY_NGX_LIMIT_REQ_PER_SERVER: 9990050
TY_NGX_LIMIT_REQ_PER_SERVER_BURST: 9990060
TY_NGX_LIMIT_RATE: 9990070k
TY_NGX_LIMIT_RATE_AFTER: 9990080m
TY_NGX_ACCESS_LOG_CONFIG: tyalogfmtfast
TY_NGX_ERROR_LOG_LEVEL: notice