From 7eafb8f03a512fa5113e31aa4c642cab83ff82f8 Mon Sep 17 00:00:00 2001 From: Liosha84 Date: Tue, 17 Nov 2026 23:43:41 +0100 Subject: [PATCH] =?UTF-8?q?Template:=20template-forgejo=20=E2=80=94=20dock?= =?UTF-8?q?er-compose.yml=20and=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 1 + README.md | 24 ++++++++++++++++++++++++ docker-compose.yml | 20 ++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 docker-compose.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/README.md b/README.md new file mode 100644 index 0000000..d1e658b --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# Forgejo on Jambotron + +A lightweight self-hosted Git service: repositories, issues, pull requests and packages. + +A ready-made template for [Jambotron](https://jambotron.com): one `docker-compose.yml` with the official image, nothing to build. + +## Deploy in one click + +1. Sign in to [jambotron.com](https://jambotron.com). +2. Press **Deploy** on the **Forgejo** card ([jambotron.com/apps](https://jambotron.com/apps), the home page or an empty projects page). +3. Jambotron uploads this template, adds an HTTPS subdomain to the `forgejo` service (port 3000) and starts the deploy. +4. Open the address and finish the installation page: set **Server domain** and **Base URL** to your address (`https://…`), keep SQLite. The first registered user becomes the administrator — register right away. Git works over HTTPS; SSH is off. + +## Deploy it yourself + +Download this repository as a ZIP, create a project on Jambotron, upload the ZIP, pick `docker-compose.yml`, deploy and add a domain to the `forgejo` service, port 3000. Or point a project at this repository (deploy from Git). + +## Data + +Named volumes survive redeploys: `forgejo_data` — repositories and the SQLite database; `forgejo_config` — `app.ini`. + +## Limits + +Fits the free plan: 1 GB RAM per project, up to 5 services. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5b5ac4b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,20 @@ +# Forgejo — lightweight self-hosted Git service: repositories, issues, pull requests, packages. +# On Jambotron: deploy → domain on the forgejo service, port 3000 → finish the installation page, the first user becomes admin. +services: + forgejo: + image: codeberg.org/forgejo/forgejo:17-rootless + restart: unless-stopped + expose: + - "3000" + environment: + FORGEJO__database__DB_TYPE: sqlite3 + # Git over HTTPS only: Jambotron domains carry HTTP, not SSH + FORGEJO__server__DISABLE_SSH: "true" + volumes: + # Repositories, SQLite database and settings + - forgejo_data:/var/lib/gitea + - forgejo_config:/etc/gitea + +volumes: + forgejo_data: + forgejo_config: