App Submission: Forgejo (#2221)

Co-authored-by: Alexander L. <lackner.alex@gmail.com>
This commit is contained in:
wilddip 2025-04-17 22:20:58 +03:00 committed by GitHub
parent d09d2cf4fe
commit 5bfb19ceb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 103 additions and 0 deletions

0
forgejo/data/db/.gitkeep Normal file
View File

View File

View File

View File

@ -0,0 +1,50 @@
version: "3.7"
services:
app_proxy:
environment:
APP_HOST: forgejo_server_1
APP_PORT: 8101
PROXY_AUTH_ADD: "false"
server:
image: codeberg.org/forgejo/forgejo:11.0.0-rootless@sha256:cb08d7d68b208fd88d6d7cc55f782da98446ee4a302dfaea239f4701a42ba68d
user: "1000:1000"
restart: on-failure
ports:
- "${APP_FORGEJO_SSH_PORT}:${APP_FORGEJO_SSH_PORT}"
volumes:
- ${APP_DATA_DIR}/data/forgejo/data:/var/lib/gitea
- ${APP_DATA_DIR}/data/forgejo/config:/etc/gitea
environment:
FORGEJO__security__INSTALL_LOCK: "true"
FORGEJO__server__DOMAIN: "${APP_DOMAIN}"
FORGEJO__server__HTTP_PORT: 8101
FORGEJO__server__SSH_DOMAIN: "${APP_DOMAIN}"
FORGEJO__server__SSH_PORT: "${APP_FORGEJO_SSH_PORT}"
FORGEJO__server__SSH_LISTEN_PORT: "${APP_FORGEJO_SSH_PORT}"
FORGEJO__server__START_SSH_SERVER: "true"
FORGEJO__database__DB_TYPE: "postgres"
FORGEJO__database__HOST: "forgejo_db_1:5432"
FORGEJO__database__NAME: "forgejo"
FORGEJO__database__USER: "forgejo"
FORGEJO__database__PASSWD: "forgejo"
depends_on:
db:
condition: service_healthy
db:
image: postgres:17.3@sha256:0321e2252ebfeecb8bc1a899755084d29bce872953e1a5a3e25ec0860b739098
restart: on-failure
user: "1000:1000"
environment:
POSTGRES_USER: forgejo
POSTGRES_PASSWORD: forgejo
POSTGRES_DB: forgejo
volumes:
- ${APP_DATA_DIR}/data/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U forgejo"]
interval: 5s
timeout: 5s
retries: 5

2
forgejo/exports.sh Normal file
View File

@ -0,0 +1,2 @@
export APP_FORGEJO_SSH_PORT="2223"
export APP_FORGEJO_TOR_HS_EXTRA_PORTS="22:forgejo_server_1:${APP_FORGEJO_SSH_PORT}"

51
forgejo/umbrel-app.yml Normal file
View File

@ -0,0 +1,51 @@
manifestVersion: 1.1
id: forgejo
category: developer
name: Forgejo
version: "11.0.0"
tagline: A self-hosted lightweight software forge
description: >-
Forgejo is a self-hosted lightweight software forge, designed to be a fully self-hosted, privacy-respecting alternative to GitHub, GitLab, and Bitbucket. It is a fork of Gitea with additional features and community-driven enhancements. Forgejo is written in Go and can run on low-resource hardware like a Raspberry Pi.
🔑 Key features include:
🏠 Fully self-hosted and private
🎯 Issue tracker and project management
👥 Account/Organization/Repository management
🕶️ Tor support
🛠️ Repository Git hooks/deploy keys
📝 Repository issues, pull requests, and wiki
👤 Add/Remove repository collaborators
🌐 Gravatar and custom source
🖥️ Admin panel
⚙️ Forgejo Actions for CI/CD
🚀 Lightweight and performant
🌍 Forgejo is brought to you by an inclusive community under the umbrella of Codeberg e.V., a democratic non-profit organization. It is 100% Free Software, focusing on security, scaling, federation, and privacy.
developer: Forgejo Community
website: https://forgejo.org/
dependencies: []
repo: https://codeberg.org/forgejo/forgejo
support: https://codeberg.org/forgejo/forgejo/issues
port: 8101
gallery:
- 1.jpg
- 2.jpg
- 3.jpg
releaseNotes: ""
submitter: John Wilddip
submission: https://github.com/getumbrel/umbrel-apps/pull/2221