diff --git a/Config/Gogs/docker-compose.example.yml b/Config/Gogs/docker-compose.example.yml new file mode 100644 index 0000000..5ce41f4 --- /dev/null +++ b/Config/Gogs/docker-compose.example.yml @@ -0,0 +1,33 @@ +# 2024-12-30 Hyperling +# Gogs self-hosted git server! +# https://hub.docker.com/r/gogs/gogs +# https://gist.github.com/ahromis/4ce4a58623847ca82cb1b745c2f83c82 + +# Takes nearly half the resources of Gitea. +# Has a more basic UI and may be lacking features. So slim though!! + +services: + + app: + ## Database ## + # SQL Lite + + ## App ## + container_name: gogs-app + image: gogs/gogs:latest + restart: always + ports: + - "3000:3000" + - "2202:22" + volumes: + - ../../Volumes/Gogs/gogs:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + environment: + - "RUN_CROND=true" + deploy: + mode: global + resources: + limits: + cpus: $CPU + memory: $MEM diff --git a/Config/Gogs/docker-compose.micro.yml b/Config/Gogs/docker-compose.micro.yml deleted file mode 100644 index 8c5a25f..0000000 --- a/Config/Gogs/docker-compose.micro.yml +++ /dev/null @@ -1,70 +0,0 @@ -# 2024-12-30 Hyperling -# Gogs self-hosted git server! -# https://hub.docker.com/r/gogs/gogs -# https://gist.github.com/ahromis/4ce4a58623847ca82cb1b745c2f83c82 - -# Takes nearly half the resources of Gitea. -# Has a more basic UI and may be lacking features. So slim though!! - -services: - - app: - ## Database ## - # SQL Lite - - ## App ## - container_name: gogs-app - image: gogs/gogs:latest - restart: always - ports: - - "3000:3000" - - "2202:22" - volumes: - - ../../Volumes/Gogs/gogs:/data - - /etc/timezone:/etc/timezone:ro - - /etc/localtime:/etc/localtime:ro - environment: - - "RUN_CROND=true" - #networks: - # - gogs - deploy: - mode: global - resources: - limits: - # Minimum requirements for processes to start properly. - # Works pretty well! Takes a little to migrate, otherwise snappy! - ###cpus: '0.02' - ###memory: 32M - # Seamless performance. - ###cpus: '0.05' - ###memory: 64M - # Extra! Idles at 50M, will probably never use all this for 1 user. - ###cpus: '0.25' - ###memory: 192M - # Final thoughts after tests. - cpus: '0.50' - memory: 96M - -## Test Results ## -# 0.02 CPU, 32MB RAM -# - Migrate https://github.com/hyperling/ansible -# - Page: 20684ms Template: 3001ms, Page: 16503ms Template: 492ms -# - Migrate https://github.com/hyperling/website -# - Page: 12495ms Template: 800ms -# - Migrate https://github.com/hyperling/docker -# - Page: 9591ms Template: 591ms -# 0.05 CPU, 64MB RAM -# - Migrate https://github.com/hyperling/ansible -# - Page: 4602ms Template: 2ms -# - Migrate https://github.com/hyperling/website -# - Page: 3269ms Template: 1ms -# - Migrate https://github.com/hyperling/docker -# - Page: 2481ms Template: 1ms -# 0.25 CPU, 192MB RAM -# - Migrate https://github.com/hyperling/ansible -# - Page: 575ms Template: 2ms -# - Migrate https://github.com/hyperling/website -# - Page: 131ms Template: 4ms -# - Migrate https://github.com/hyperling/docker -# - Page: 350ms Template: 1ms -## ## diff --git a/Config/Gogs/example.env b/Config/Gogs/example.env new file mode 100644 index 0000000..0bdd2ec --- /dev/null +++ b/Config/Gogs/example.env @@ -0,0 +1,45 @@ +# This file will need to be renamed as `.env`. + +## Docker ## + +COMPOSE_BAKE=true + +## Performance ## + +# Micro Server +CPU=0.10 +MEM=0.10G + +# Standard Server +#CPU=0.50 +#MEM=0.50G + +## Test Results +# 0.02 CPU, 32MB RAM +# : Minimum requirements for processes to start properly. +# : Works pretty well! Takes a little to migrate, otherwise snappy! +# - Migrate https://github.com/hyperling/ansible +# - Page: 20684ms Template: 3001ms, Page: 16503ms Template: 492ms +# - Migrate https://github.com/hyperling/website +# - Page: 12495ms Template: 800ms +# - Migrate https://github.com/hyperling/docker +# - Page: 9591ms Template: 591ms +# 0.05 CPU, 64MB RAM +# : Seamless performance. +# - Migrate https://github.com/hyperling/ansible +# - Page: 4602ms Template: 2ms +# - Migrate https://github.com/hyperling/website +# - Page: 3269ms Template: 1ms +# - Migrate https://github.com/hyperling/docker +# - Page: 2481ms Template: 1ms +# 0.25 CPU, 192MB RAM +# : Extra! Idles at 50M, will probably never use all this for 1 user. +# - Migrate https://github.com/hyperling/ansible +# - Page: 575ms Template: 2ms +# - Migrate https://github.com/hyperling/website +# - Page: 131ms Template: 4ms +# - Migrate https://github.com/hyperling/docker +# - Page: 350ms Template: 1ms +# 0.50 CPU, 96MB RAM +# : Final thoughts after tests. +##