Move performance resources to env file.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user