Tweak resource allocation
This commit is contained in:
parent
fb50ade480
commit
d86069a385
1 changed files with 13 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
version: '3.8'
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
ingress:
|
ingress:
|
||||||
|
|
@ -11,11 +11,11 @@ services:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpus: '0.10'
|
cpus: "0.3"
|
||||||
memory: 32M
|
memory: 128M
|
||||||
reservations:
|
reservations:
|
||||||
cpus: '0.10'
|
cpus: "0.3"
|
||||||
memory: 32M
|
memory: 128M
|
||||||
update_config:
|
update_config:
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
|
|
@ -27,7 +27,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
|
||||||
volumes:
|
volumes:
|
||||||
- /root/data/certbot/conf:/etc/letsencrypt
|
- /root/data/certbot/conf:/etc/letsencrypt
|
||||||
- /root/data/certbot/www:/var/www/certbot
|
- /root/data/certbot/www:/var/www/certbot
|
||||||
|
|
@ -39,10 +39,10 @@ services:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpus: '0.05'
|
cpus: "0.05"
|
||||||
memory: 16M
|
memory: 16M
|
||||||
reservations:
|
reservations:
|
||||||
cpus: '0.05'
|
cpus: "0.05"
|
||||||
memory: 16M
|
memory: 16M
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
@ -61,11 +61,11 @@ services:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpus: '0.15'
|
cpus: "0.15"
|
||||||
memory: 128M
|
memory: 64M
|
||||||
reservations:
|
reservations:
|
||||||
cpus: '0.15'
|
cpus: "0.15"
|
||||||
memory: 128M
|
memory: 64M
|
||||||
update_config:
|
update_config:
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue