Move resources to env file.
This commit is contained in:
		| @@ -26,46 +26,11 @@ services: | |||||||
|     environment: |     environment: | ||||||
|       - USER_UID=1000 |       - USER_UID=1000 | ||||||
|       - USER_GID=1000 |       - USER_GID=1000 | ||||||
|     #networks: |       - CPU=$CPU | ||||||
|     #  - gitea |       - MEM=$MEM | ||||||
|     deploy: |     deploy: | ||||||
|       mode: global |       mode: global | ||||||
|       resources: |       resources: | ||||||
|         limits: |         limits: | ||||||
|         # Minimum requirements for processes to start properly. |           cpus: $CPU | ||||||
|         # Takes a while to start up and migrate projects, but does work. |           memory: $MEM | ||||||
|           ###cpus: '0.05' |  | ||||||
|           ###memory: 64M |  | ||||||
|         # Production-quality performance. |  | ||||||
|           ###cpus: '0.10' |  | ||||||
|           ###memory: 128M |  | ||||||
|         # Extra! Idles around 120M but exceeds 170M sometimes after busy. |  | ||||||
|           ###cpus: '0.25' |  | ||||||
|           ###memory: 192M |  | ||||||
|         # Final thoughts after tests. |  | ||||||
|           cpus: '0.50' |  | ||||||
|           memory: 192M |  | ||||||
|  |  | ||||||
| ## Test Results ## |  | ||||||
| # 0.05 CPU, 64MB RAM |  | ||||||
| # - Migrate https://github.com/hyperling/ansible |  | ||||||
| #   - Page: 10512ms Template: 2111ms |  | ||||||
| # - Migrate https://github.com/hyperling/website |  | ||||||
| #   - Page: 6514ms  Template: 807ms |  | ||||||
| # - Migrate https://github.com/hyperling/docker |  | ||||||
| #   - Page: 8105ms  Template: 1201ms |  | ||||||
| # 0.10 CPU, 128MB RAM |  | ||||||
| # - Migrate https://github.com/hyperling/ansible |  | ||||||
| #   - Page: 2501ms Template: 294ms |  | ||||||
| # - Migrate https://github.com/hyperling/website |  | ||||||
| #   - Page: 786ms Template: 194ms |  | ||||||
| # - Migrate https://github.com/hyperling/docker |  | ||||||
| #   - Page: 1283ms Template: 87ms |  | ||||||
| # 0.25 CPU, 192MB RAM |  | ||||||
| # - Migrate https://github.com/hyperling/ansible |  | ||||||
| #   - Page: 439ms Template: 101ms |  | ||||||
| # - Migrate https://github.com/hyperling/website |  | ||||||
| #   - Page: 541ms Template: 2ms |  | ||||||
| # - Migrate https://github.com/hyperling/docker |  | ||||||
| #   - Page: 254ms Template: 86ms |  | ||||||
| ## ## |  | ||||||
|   | |||||||
							
								
								
									
										45
									
								
								Config/Gitea/env.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								Config/Gitea/env.example
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,45 @@ | |||||||
|  | # This file should be copied as `.env`. | ||||||
|  |  | ||||||
|  | ## Docker ## | ||||||
|  |  | ||||||
|  | COMPOSE_BAKE=true | ||||||
|  |  | ||||||
|  | ## Performance ## | ||||||
|  |  | ||||||
|  | # Micro Server | ||||||
|  | CPU=0.20 | ||||||
|  | MEM=0.20G | ||||||
|  |  | ||||||
|  | # Standard Server | ||||||
|  | #CPU=1.00 | ||||||
|  | #MEM=1.00G | ||||||
|  |  | ||||||
|  | ## Test Results | ||||||
|  | # 0.05 CPU, 64MB RAM | ||||||
|  | # : Minimum requirements for processes to start properly. | ||||||
|  | # : Takes a while to start up and migrate projects, but does work. | ||||||
|  | # - Migrate https://github.com/hyperling/ansible | ||||||
|  | #   - Page: 10512ms Template: 2111ms | ||||||
|  | # - Migrate https://github.com/hyperling/website | ||||||
|  | #   - Page: 6514ms  Template: 807ms | ||||||
|  | # - Migrate https://github.com/hyperling/docker | ||||||
|  | #   - Page: 8105ms  Template: 1201ms | ||||||
|  | # 0.10 CPU, 128MB RAM | ||||||
|  | # : Production-quality performance. | ||||||
|  | # - Migrate https://github.com/hyperling/ansible | ||||||
|  | #   - Page: 2501ms Template: 294ms | ||||||
|  | # - Migrate https://github.com/hyperling/website | ||||||
|  | #   - Page: 786ms Template: 194ms | ||||||
|  | # - Migrate https://github.com/hyperling/docker | ||||||
|  | #   - Page: 1283ms Template: 87ms | ||||||
|  | # 0.25 CPU, 192MB RAM | ||||||
|  | # : Extra! Idles around 120M but exceeds 170M sometimes after busy. | ||||||
|  | # - Migrate https://github.com/hyperling/ansible | ||||||
|  | #   - Page: 439ms Template: 101ms | ||||||
|  | # - Migrate https://github.com/hyperling/website | ||||||
|  | #   - Page: 541ms Template: 2ms | ||||||
|  | # - Migrate https://github.com/hyperling/docker | ||||||
|  | #   - Page: 254ms Template: 86ms | ||||||
|  | # 0.50 CPU, 192MB RAM | ||||||
|  | # : Final thoughts after more production usage. | ||||||
|  | ## | ||||||
		Reference in New Issue
	
	Block a user