diff --git a/Config/Gitea/docker-compose.micro.yml b/Config/Gitea/docker-compose.micro.yml index cecb619..1fe1137 100644 --- a/Config/Gitea/docker-compose.micro.yml +++ b/Config/Gitea/docker-compose.micro.yml @@ -26,46 +26,11 @@ services: environment: - USER_UID=1000 - USER_GID=1000 - #networks: - # - gitea + - CPU=$CPU + - MEM=$MEM deploy: mode: global resources: limits: - # Minimum requirements for processes to start properly. - # Takes a while to start up and migrate projects, but does work. - ###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 -## ## + cpus: $CPU + memory: $MEM diff --git a/Config/Gitea/env.example b/Config/Gitea/env.example new file mode 100644 index 0000000..e266b64 --- /dev/null +++ b/Config/Gitea/env.example @@ -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. +##