Tweak resource allocation

This commit is contained in:
schmelczerandras 2020-07-16 17:49:00 +02:00
parent fb50ade480
commit d86069a385

View file

@ -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
@ -51,7 +51,7 @@ services:
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
frontend: frontend:
init: true init: true
image: schmelczera/declared-frontend image: schmelczera/declared-frontend
@ -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