Standardize the Gogs setup.

This commit is contained in:
2025-10-30 07:46:42 -07:00
parent b76898d146
commit ffabb62f94
3 changed files with 78 additions and 70 deletions

View File

@@ -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