Move performance resources to env file.
This commit is contained in:
		| @@ -16,6 +16,8 @@ services: | |||||||
|       - BRANCH=$BRANCH |       - BRANCH=$BRANCH | ||||||
|       - PROD=$PROD |       - PROD=$PROD | ||||||
|       - DEV=$DEV |       - DEV=$DEV | ||||||
|  |       - CPU=$CPU | ||||||
|  |       - MEM=$MEM | ||||||
|     healthcheck: |     healthcheck: | ||||||
|       test: curl -sS http://localhost:80 || curl -sS http://localhost:1380 || exit 1 |       test: curl -sS http://localhost:80 || curl -sS http://localhost:1380 || exit 1 | ||||||
|       interval: 1m |       interval: 1m | ||||||
| @@ -26,5 +28,5 @@ services: | |||||||
|       mode: global |       mode: global | ||||||
|       resources: |       resources: | ||||||
|         limits: |         limits: | ||||||
|           cpus: '0.10' |           cpus: $CPU | ||||||
|           memory: 64M |           memory: $MEM | ||||||
|   | |||||||
| @@ -9,10 +9,10 @@ COMPOSE_BAKE=true | |||||||
| ## Git Website Repository | ## Git Website Repository | ||||||
| # | # | ||||||
| REPO=https://git.hyperling.com/me/hugo-jackanope | REPO=https://git.hyperling.com/me/hugo-jackanope | ||||||
| BRANCH=main | BRANCH=prod | ||||||
|  |  | ||||||
| # | # | ||||||
| ## Web Environments | ## Web Environments ## | ||||||
| # Please use values YES/TRUE and NO/FALSE. | # Please use values YES/TRUE and NO/FALSE. | ||||||
|  |  | ||||||
| # Whether to start NGINX | # Whether to start NGINX | ||||||
| @@ -20,3 +20,9 @@ PROD=YES | |||||||
|  |  | ||||||
| # Whether to start Hugo Server | # Whether to start Hugo Server | ||||||
| DEV=NO | DEV=NO | ||||||
|  |  | ||||||
|  | # | ||||||
|  | ## Resources ## | ||||||
|  | # | ||||||
|  | CPU=0.10 | ||||||
|  | MEM=0.10G | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user