From 12bf792e654a8eddfd6b4617f66b6691c4aeeb41 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 30 Oct 2025 07:05:31 -0700 Subject: [PATCH] Move performance resources to env file. --- Config/HugoExample/docker-compose.example.yml | 6 ++++-- Config/HugoExample/example.env | 10 ++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Config/HugoExample/docker-compose.example.yml b/Config/HugoExample/docker-compose.example.yml index 96eae7b..1d02191 100644 --- a/Config/HugoExample/docker-compose.example.yml +++ b/Config/HugoExample/docker-compose.example.yml @@ -16,6 +16,8 @@ services: - BRANCH=$BRANCH - PROD=$PROD - DEV=$DEV + - CPU=$CPU + - MEM=$MEM healthcheck: test: curl -sS http://localhost:80 || curl -sS http://localhost:1380 || exit 1 interval: 1m @@ -26,5 +28,5 @@ services: mode: global resources: limits: - cpus: '0.10' - memory: 64M + cpus: $CPU + memory: $MEM diff --git a/Config/HugoExample/example.env b/Config/HugoExample/example.env index 0783032..792e009 100644 --- a/Config/HugoExample/example.env +++ b/Config/HugoExample/example.env @@ -9,10 +9,10 @@ COMPOSE_BAKE=true ## Git Website Repository # REPO=https://git.hyperling.com/me/hugo-jackanope -BRANCH=main +BRANCH=prod # -## Web Environments +## Web Environments ## # Please use values YES/TRUE and NO/FALSE. # Whether to start NGINX @@ -20,3 +20,9 @@ PROD=YES # Whether to start Hugo Server DEV=NO + +# +## Resources ## +# +CPU=0.10 +MEM=0.10G