From 65022e79392d422f0479c32fa625982edab71398 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Sun, 26 Nov 2023 22:21:38 -0700 Subject: [PATCH] chore: prod resource tuning --- docker-compose-prod.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml index 8fd7b40..67d40f1 100644 --- a/docker-compose-prod.yml +++ b/docker-compose-prod.yml @@ -5,13 +5,7 @@ services: PROD: true deploy: replicas: 2 - resources: - limits: - cpus: '0.50' - memory: '512M' - reservations: - cpus: '0.25' - memory: '128M' + mem_limit: '512m' healthcheck: test: ['CMD', 'curl', '-f', 'http://localhost'] interval: 10s @@ -25,14 +19,7 @@ services: - ./src/storage/logs:/var/www/html/storage/logs - ./src/storage/app/public:/var/www/html/public/storage glass-db: - deploy: - resources: - limits: - cpus: '0.50' - memory: '512M' - reservations: - cpus: '0.25' - memory: '128M' + mem_limit: '768m' healthcheck: test: ['CMD', 'mariadb', '-u${MARIADB_USER}', '-p${MARIADB_PASSWORD}', '-e', 'show databases;'] interval: 10s