Move performance resources to env file.

This commit is contained in:
2025-10-30 07:05:31 -07:00
parent c607fe1968
commit 12bf792e65
2 changed files with 12 additions and 4 deletions

View File

@@ -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

View File

@@ -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