brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Forgejo review: a self-hosted Git forge on Unraid

Forgejo review: a self-hosted Git forge on Unraid

This Forgejo review looks at a small self-hosted Git forge that runs on an Unraid server with a MariaDB database and one Actions runner. Forgejo gives you repositories, issues, pull requests, a package registry and CI on your own hardware, and the instance described here does that with a few hundred megabytes of memory. It runs Forgejo 17.0.2, upgraded from 16.0.7 on 28 November 2026 after the version 16 line had stopped receiving fixes.

The review is based on that running instance (screenshots, settings, read-only measurements and the checks made around the upgrade) plus the official documentation and public sources. The app screenshots and resource figures were taken on 28 November before the upgrade, so they show 16.0.7. The installation dates from 19 November, so nothing here speaks to how it behaves over months.

Forgejo project home page describing a self-hosted lightweight software forge
The project site, forgejo.org, on 28 November 2026.

Verdict

AreaAssessment
InstallShort with the official container image; SQLite needs one container, MariaDB or PostgreSQL adds one
Everyday useCode browsing, issues, pull requests and activity views that will look familiar to GitHub users
CIForgejo Actions works with a separate runner; close to GitHub Actions, deliberately not identical
ResourcesLight: roughly 333 to 365 MiB for the server container (measured on 16.0.7), plus about 35 MiB for an idle runner
UpkeepThe weak point. A new major version every quarter; the move from 16 to 17 here meant a few minutes of downtime
Security posture herePrivate network only, registration off, on 17.0.2, which is supported until 28 January 2027
Worth it whenYou want your code and CI on your own machine and will read release notes a few times a year

A major tag stops at end of life

Until 28 November the instance ran Forgejo 16.0.7 from the image tag codeberg.org/forgejo/forgejo:16. That tag follows the newest 16.x release, and 16.0.7, published on 26 October 2026, was the last one. According to the release schedule, version 16 reached end of life on 29 October. The installation was set up three weeks after that date, so the tag was already stale on the first day.

That mattered on 18 November, when the project published security releases 17.0.2 and 15.0.12. The advance announcement says that version 16 gets no patches and that users must upgrade to version 17. The fixes in that round cover, among other things, a way to get in through Forgejo’s built-in SSH server on SQLite installations, commit headers that could make Forgejo display a wrong diff, a missing permission check that leaked which files a repository contains, and API endpoints that ignored token restrictions. The notes do not assess version 16, and the first item concerns an SSH server that the standard image does not use.

Forgejo security announcement stating that version 16 is end of life and gets no patches
The announcement for the 18 November security releases, with the sentence about version 16.

A tag such as :16 looks maintained because pulling it succeeds and nothing complains. It stops receiving fixes the day its line ends, and moving to the next major version is a manual step. Write the end date next to the tag you choose. For this instance the next one is 28 January 2027, when support for version 17 ends. If you are installing today, start on 17, or on 15 if you prefer long-term support.

Forgejo releases page listing 17.0.2 and 15.0.12 with their support end dates
The releases page lists two supported lines, 17 and the 15 LTS.
Timeline of Forgejo 15 LTS, 16, 17 and 18 support windows, with this instance marked on version 17 on 28 November 2026
Support windows side by side. The instance moved from the ended 16 line to 17, which runs until 28 January 2027.

A private network lowers the risk of running old code, because an attacker first has to be on the LAN or the Tailscale network. A compromised laptop, a guest device or a malicious dependency in a CI job could still reach the web port.

What Forgejo is

Forgejo is a software forge: a web application around Git repositories. It is written in Go and descends from Gitea, which itself came from Gogs. The Forgejo comparison page and the Wikipedia history describe the origin: in late 2022 control of Gitea’s name and operations moved to a for-profit company, some contributors objected, and Forgejo started as a fork under the umbrella of Codeberg e.V., a non-profit association in Berlin. In early 2024 it became a hard fork, which means changes are no longer pulled across from Gitea as a matter of course.

Releases up to version 8 were MIT licensed, while version 9 and later are GPL version 3 or later. Codeberg, the best known public Forgejo server, runs the same software.

The feature list is long for something this small. Next to repositories you get issues, milestones, pull requests with code review, project boards, wikis, releases, organisations and teams, webhooks, an API, and Forgejo Actions for CI. The package registry handles more than twenty formats, including container images, npm, PyPI, Maven, Cargo, Go, Debian and RPM. Team permissions can be set per area, so a team may write to issues without touching code.

Federation between forges is often mentioned in connection with Forgejo. It is a stated goal and funded work exists, but do not choose Forgejo today for the ability to open a pull request from one server to another.

Forgejo source repository on Codeberg with commit, branch and tag counts
The Forgejo source on Codeberg, which itself runs Forgejo.

How Forgejo works

The server is one program. It serves the web interface and the API, accepts Git over HTTP, manages the SSH side and runs the hooks that fire when you push. The repositories are ordinary bare Git repositories on disk. Everything that Git itself has no place for, such as users, issues, pull request metadata, permissions and the record of CI runs, lives in a database.

Forgejo supports SQLite, MariaDB or MySQL, and PostgreSQL. The database page asks for MariaDB 10.6 or newer, MySQL 8.4 or newer, or PostgreSQL 14 or newer. The instance here talks the MySQL protocol to a MariaDB container on the same server. In the standard Docker image, SSH access goes through OpenSSH inside the container; the rootless image uses Forgejo’s own SSH server instead.

Architecture diagram with client machines, the Forgejo container, MariaDB, the data volume and the runner
The pieces of this setup. The runner connects to Forgejo, and the database and files are stored separately.

CI is the one job the server does not do. Forgejo decides which workflow should run and keeps the queue, and a second program, the Forgejo Runner, collects jobs and executes them. The Actions administrator guide is explicit that Forgejo does not run jobs itself. The runner can therefore sit on another machine with more CPU, or on a throwaway virtual machine with no access to anything you care about.

From git push to a green check1. You pushgit sends thecommits2. Forgejoreads the workflowand queues a job3. Runnerasks Forgejo andpicks up the job4. Resultsteps run, logs andstatus come back
A push does not run anything inside Forgejo itself. The runner asks for the job, runs it and reports back.

This instance in numbers

The figures below were read on 28 November 2026 on one lightly used server with a single active author, so they are an example from one machine. Apart from the version rows, they were taken before the upgrade, on 16.0.7.

ItemValue
Forgejo version17.0.2, built with Go 1.26.11 (16.0.7 until 28 November)
Image tagcodeberg.org/forgejo/forgejo:17
Image size before the upgrade194 MB for the :16 image
NetworkDocker bridge
DatabaseMariaDB container on the same server
/data on disk before the upgrade432 MB
Container memory on 16.0.7about 333 to 365 MiB
Runnerforgejo-runner 12.13.2, 42 MB image, about 35 MiB idle
Repositories2, both private
Largest repositorynextdash: 5,801 commits, 178 branches, 0 tags, 424 MiB
Contributions on the heatmap908 in the last 12 months, nearly all in the last two weeks
Week of 21 to 28 November147 commits by 1 author, 556 files changed, 51,830 additions, 9,690 deletions
Actions runs shown (16.0.7)numbers 6 to 14, all successful, 1m7s to 1m26s each

The version string contains a “+gitea-1.22.0” suffix. It records the Gitea API level Forgejo stays compatible with, a leftover that tools reading the version may rely on. The build tags mentioning SQLite only say that SQLite support is compiled in; this instance does not use it.

Terminal output from before the upgrade with memory and CPU use of Forgejo and its runner, data size and image sizes
Resource use, disk and image sizes at one moment before the upgrade, on 16.0.7.

Before the upgrade, the large repository took 424 MiB according to its code page, and the whole data directory was 432 MB by du. Almost everything on that volume was therefore one repository’s history. The database is not in that figure at all, which matters for backups.

Installing Forgejo on Docker Compose or Unraid

The Docker installation page is short. This is its basic example, which uses SQLite and the current major tag:

networks:
  forgejo:
    external: false

services:
  server:
    image: codeberg.org/forgejo/forgejo:17
    container_name: forgejo
    environment:
      - USER_UID=1000
      - USER_GID=1000
    restart: always
    networks:
      - forgejo
    volumes:
      - ./forgejo:/data
      - /etc/localtime:/etc/localtime:ro
    ports:
      - '3000:3000'
      - '222:22'
docker compose up -d

Port 3000 is the web interface and host port 222 maps to SSH in the container. Make the data folder owned by the UID and GID you set, or the container may fail to start. If codeberg.org cannot be reached, the documentation says to replace it with data.forgejo.org in image names.

Forgejo documentation page for installation with Docker
The official Docker instructions explain what the major version tags follow.

For MariaDB, add the database settings as environment variables and a second service. This follows the documented MySQL example with the image swapped for MariaDB. Replace both passwords, and keep the file out of any repository.

services:
  server:
    environment:
      - FORGEJO__database__DB_TYPE=mysql
      - FORGEJO__database__HOST=db:3306
      - FORGEJO__database__NAME=forgejo
      - FORGEJO__database__USER=forgejo
      - FORGEJO__database__PASSWD=change-me
    depends_on:
      - db

  db:
    image: mariadb:11
    restart: always
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
    environment:
      - MARIADB_ROOT_PASSWORD=change-me-too
      - MARIADB_DATABASE=forgejo
      - MARIADB_USER=forgejo
      - MARIADB_PASSWORD=change-me
    networks:
      - forgejo
    volumes:
      - ./mariadb:/var/lib/mysql

Any app.ini setting can be written as FORGEJO__section__KEY. The variables can add or change values but cannot remove one; for that you edit app.ini.

On Unraid

Search Community Applications for Forgejo, and before pressing Apply look at the Repository field. Templates can lag behind, so set it to codeberg.org/forgejo/forgejo:17 yourself if it shows something older. Map /data to an appdata share, map the web and SSH ports to free host ports, and add a MariaDB container first if you do not want SQLite. Check the Docker stop timeout setting as well, so Unraid does not kill the database halfway through a shutdown. Background on moving a home server to Unraid is in this write-up.

On first visit Forgejo shows an installation form with the database fields, the public URL and an optional administrator account. Create the administrator there, or from the command line:

docker exec -u git forgejo forgejo admin user create \
  --admin --username alice --email [email protected] --random-password

Adding a runner

The runner installation page pairs the runner with a Docker-in-Docker service, so job containers do not run on the host’s Docker daemon. Note that the dind container is privileged, which is a trade-off to understand before copying it.

services:
  docker-in-docker:
    image: docker:dind
    container_name: 'docker_dind'
    privileged: 'true'
    command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false']
    restart: 'unless-stopped'

  runner:
    image: 'data.forgejo.org/forgejo/runner:13'
    links:
      - docker-in-docker
    depends_on:
      docker-in-docker:
        condition: service_started
    container_name: 'runner'
    environment:
      DOCKER_HOST: tcp://docker-in-docker:2375
    user: 1001:1001
    volumes:
      - ./data:/data
    restart: 'unless-stopped'
    command: 'forgejo-runner daemon --config runner-config.yml'

Prepare the folder and generate a configuration file:

mkdir -p data/.cache
sudo chown -R 1001:1001 data
chmod 775 data/.cache
chmod g+s data/.cache
docker run --rm data.forgejo.org/forgejo/runner:13 \
  forgejo-runner generate-config > data/runner-config.yml

Then create the runner in the web interface, under the repository’s Settings, Actions, Runners. Registration shows a UUID and a token that go into the configuration, together with at least one label:

runner:
  labels:
    - docker:docker://node:22-bookworm
server:
  connections:
    forgejo:
      url: http://192.0.2.10:3000/
      uuid: <uuid from the web page>
      token: <token from the web page>

Start it with docker compose up -d. The runner on the instance here is version 12.13.2 from the :12 tag, one major behind the current 13.x. Runner 13 removed some old behaviour: the set-output, set-env and add-path commands, the GITEA_ environment variables and implicit registry login through secrets. It also needs Docker 25 or newer. Check workflows for those before moving.

First settings that matter

Registration is disabled on this instance. That is the first thing to set on any private server, because the default allows anyone who reaches the page to sign up:

FORGEJO__service__DISABLE_REGISTRATION=true

The second is whether visitors must sign in to see anything. Here sign-in is not required to view public pages. With both repositories private, an anonymous visitor on the network does not get their code, but public profiles and anything later marked public would be readable. Setting REQUIRE_SIGNIN_VIEW to true in the service section closes that.

Get ROOT_URL, SSH_DOMAIN and SSH_PORT right early. Forgejo builds clone addresses and links from them, and a wrong value shows up as copy buttons that hand out an address that does not work. If you map SSH to port 222 on the host, set SSH_PORT to 222.

Turn on two-factor authentication for the administrator. There is also GLOBAL_TWO_FACTOR_REQUIREMENT in the security section, with the values none, all and admin. The configuration cheat sheet lists the rest.

The mailer is off here, which is the default. The effect is that notification mails never arrive and a forgotten password cannot be reset by mail. On a single-user server the command line covers the second case:

docker exec -u git forgejo forgejo admin user change-password \
  --username alice --password 'a-new-long-password'

A password typed on a command line can end up in shell history, so change it again in the web interface afterwards.

The update checker is on. By default it runs once every 168 hours and looks up the newest version through a DNS record under release.forgejo.org. All it does is show a notice on an admin page, possibly a week late. For security releases, subscribe to the feed of the security announcements repository, which publishes the date of a release in advance.

One setting concerns people who sign users in through a reverse proxy. Since version 16, container images no longer trust every address for those headers, so REVERSE_PROXY_TRUSTED_PROXIES has to name your proxy.

Daily use

The dashboard shows a contribution heatmap, a feed of pushes with their commit messages and a repository list with a check mark for the latest CI status. On this instance the heatmap is almost empty apart from the last two weeks, which is what a nine day old installation with an old repository in it looks like.

Forgejo dashboard with contribution heatmap, recent pushes and a repository list
The dashboard: heatmap, push feed and repositories with their CI status. Taken on 16.0.7, before the upgrade.

The code page is where GitHub habits carry over most directly: commit, branch and tag counts, repository size, a language bar, branch picker, file search and both HTTP and SSH clone addresses (blurred in the screenshot). Without the repository indexer, code search uses git grep on one repository at a time, on any branch. Enabling the indexer adds search across repositories, limited to default branches and paid for in disk and CPU.

Forgejo code view of the nextdash repository with 5,801 commits, 178 branches and 424 MiB
The code page of the large repository, with the language bar and clone buttons. Taken on 16.0.7, before the upgrade.

The nextdash repository has 178 branches and no tags. Forgejo copes with the branch count in the interface, but releases are built on tags, so the Releases tab has nothing to show until tags are pushed.

The Activity tab summarises a period: pull requests, issues, commits and changed lines. For the week shown it reports zero pull requests and zero issues next to 147 commits. That is a normal pattern for a solo project that works directly on a development branch, and it also means this instance says nothing about how review feels with several people.

Forgejo activity pulse for 21 to 28 November showing 147 commits by one author
The pulse for one week: commits and changed lines, no pull requests or issues. Taken on 16.0.7, before the upgrade.

Pull requests work the usual way, from a branch or a fork. Forgejo also supports AGit, which opens a pull request from a single push without creating a fork or a remote branch:

git push origin HEAD:refs/for/main/fix-typo

When a server moves or an existing project gains a second home, url.insteadOf rewrites remote addresses in one place and saves editing every clone.

Forgejo Actions in practice

The repository here has one workflow file, dev-deploy.yml, in .forgejo/workflows. The Actions page lists each run with its commit, branch, duration and result. Runs 6 through 14 are all green and each took between 67 and 86 seconds. That is a narrow spread, though nine runs of one workflow are not much of a sample. All of them ran against 16.0.7. No run had been observed on 17.0.2 when this was written.

Forgejo Actions list with successful dev-deploy.yml runs and their durations
Recent runs of the one workflow, each a little over a minute. Taken on 16.0.7, before the upgrade.

The runner is registered to that single repository and carries the label dev-deploy. Scoping a runner to one repository is what the security guide recommends, since an instance-wide runner will take jobs from any repository on the server. The screenshot shows the label name only; it does not show whether jobs run in containers or directly on a host.

Forgejo admin page listing one idle repository runner with the label dev-deploy
One runner, scoped to a single repository. Taken on 16.0.7, before the upgrade.

The repository also has a .github folder. Forgejo looks for workflows in .forgejo/workflows first, then .gitea/workflows, then .github/workflows, and uses the first directory it finds. With a .forgejo/workflows directory present, anything under .github/workflows is ignored on this server. A project that lives on two forges needs to plan for that.

A small test workflow looks like this:

# .forgejo/workflows/test.yml
on:
  push:
    branches: [main]

jobs:
  test:
    runs-on: docker
    steps:
      - uses: actions/checkout@v4
      - run: echo "run your tests here"

The runs-on value must match a label a runner declared. If none does, the job waits. A short uses reference such as actions/checkout@v4 is resolved against data.forgejo.org by default, so an action that exists only on GitHub needs a full URL or will not be found.

The project’s own wording is that Actions aims for familiarity, not compatibility with GitHub Actions. The differences it lists: the default job image is a slim Debian with little more than Node.js, some keys of the github context are missing, permissions and continue-on-error are ignored at job level, and OpenID Connect tokens are switched on in a different way. A workflow that assumes preinstalled tools on a large Ubuntu image will fail until you install them or pick a bigger image.

Mirrors

Forgejo can mirror in both directions. A pull mirror copies another repository into your server on a schedule, and it can only be chosen when the repository is created. A push mirror sends your repository elsewhere. The settings panel offers a remote URL, a branch filter, authorization, a sync on push option and an interval that defaults to 8 hours with a minimum of 10 minutes.

Forgejo mirror settings with no push mirror configured and fields for URL, branch filter and interval
The push mirror form. Nothing is configured on this repository. Taken on 16.0.7, before the upgrade.

No push mirror is configured on the repository in the screenshot. That means the server is not copying this code anywhere by itself. Working clones on other machines hold commit history, but they hold no issues, settings or Actions configuration.

Read the mirror documentation before adding one. The push is a force push and will overwrite changes made on the target. LFS objects are not sent when the mirror uses SSH. For SSH mirrors Forgejo generates a key pair, and you add the public key to the target as a deploy key with write access.

A push mirror overwrites its targetYour ForgejoMirror targetABCABCXforce push, as with git push --mirrorX was committed only on the target. After the sync it is gone from the branch.
Treat a mirror target as read only. Anything committed there directly can be overwritten by the next sync.

A mirror gives you a second copy of the Git data, which falls short of a backup. A branch you delete or rewrite by mistake can be carried over at the next sync, and nothing outside Git goes along.

Performance and resources

Before the upgrade, the server container used about 365 MiB of memory and 0.88 percent CPU in the docker stats reading above, and readings on the same day ranged down to about 333 MiB. The runner used about 35 MiB and 0.12 percent while idle. The admin page reports something smaller: 118 MiB of current memory use, with 65 goroutines after 16 hours and 49 minutes of uptime. Both are right, since one counts the whole container and the other the Go program’s own view of its memory.

Forgejo admin system status showing uptime, goroutines and memory figures
The admin status page reports the Go process’s own memory figures. Taken on 16.0.7, before the upgrade.

The MariaDB container is not included in any of these figures, and it was not measured for this review. Add it when sizing a machine, or use SQLite for a one-person server and have one process fewer.

Most of the load will come from CI. An idle runner costs very little, but a build costs whatever the build needs, on whichever machine the runner is on. The runner configuration lets you cap memory and CPU for job containers through container options, and the default job timeout is three hours, long enough for a hung job to block a runner that takes one job at a time.

For comparison, GitLab’s requirements page gives 8 vCPU and 16 GB as the single-node baseline, with 8 GB as a floor on constrained systems. Gitea’s documentation suggests 2 cores and 1 GB for a small team. Forgejo sits in the same class as Gitea. This review did not time page loads or clones.

Security, privacy and exposure

This instance is reachable over the LAN and Tailscale and is not on the public internet. That is a sensible default for a private forge. Remote access then depends on being in the tailnet, and a quick port test with tailscale nc tells you whether a device can reach it. Other people cannot contribute without joining that network, which is fine here and a deal breaker for an open project.

For privacy, code, issues and CI logs stay on your server and in your backups. The outbound traffic to expect is the update check, fetching actions and job images when workflows run, and any mirrors, webhooks or package proxies you set up yourself.

The runner is the largest risk in a setup like this. The security guide opens by saying that a runner exists to execute remote code. Anyone who can push to a repository served by a runner can run what they like on it, and branch protection alone does not stop that.

Forgejo documentation page on securing Actions deployments
The runner security guide starts from the fact that CI is remote code execution by design.

The practical advice from that guide: prefer Docker labels with default settings, keep privileged mode off for job containers, avoid host labels unless the runner machine is disposable, register runners to a repository and not the whole instance, and keep the runner away from parts of your network that jobs have no business reaching. A host label gives a job everything the runner’s user can do. Handing a job the host’s Docker socket is in the same league, since whoever controls Docker controls the machine.

Secrets stored in Forgejo are available to workflows through the secrets context. They are not passed to pull requests from forks, but pull_request_target workflows can read them and need careful writing. Use access tokens with the narrowest scope that works, one per tool, so that one can be revoked without breaking the rest.

Forgejo publishes security releases often. Between late April and 18 November 2026 the announcements tracker shows a steady run of them, sometimes only weeks apart. An unattended install falls behind quickly. In April 2026 a researcher publicly claimed a chain of flaws leading to remote code execution; LWN’s account reports that the project disputed the severity, that exploitation was said to need non-default settings and open registration, and that a later clarification tied it to administrator or internal credentials. The researcher afterwards apologised and shared the details privately. Closed registration, as here, removes one of the preconditions he described and costs nothing.

Backups, updates and what breaks when it is down

The backup guide names three things you cannot do without: the database, the data directory with repositories and other storage, and app.ini. app.ini holds SECRET_KEY and JWT_SECRET. Lose SECRET_KEY and Forgejo can no longer decrypt webhook credentials, Actions secrets, mirror credentials and two-factor configuration, even with a perfect database dump.

Diagram showing database dump, data directory and app.ini combined into one backup set
Three things that have to be restored together.

The guide strongly recommends stopping Forgejo during a backup, so that the database and the files describe the same moment. With the compose file above, and the database still running:

docker compose stop server
docker compose exec db sh -c \
  'mariadb-dump -u root -p"$MARIADB_ROOT_PASSWORD" --single-transaction forgejo' \
  > forgejo-db.sql
sudo tar -czf forgejo-data.tar.gz ./forgejo
docker compose start server

In the standard image app.ini sits inside the /data volume, so the tar file includes it. Check that yours does. On Unraid, an appdata backup of the Forgejo folder covers the files but says nothing about the database unless that container is stopped or dumped as well. Keep more than one backup, and keep a copy off the server. There is also a forgejo dump command that writes an archive; the current backup guide describes the separate steps instead, so those are what to rely on.

A restore goes in the same order: database, files, app.ini, start. Afterwards the guide has you run the admin cron jobs that regenerate the SSH authorized keys files. Try it once on a spare folder or machine, so a broken dump shows up before it matters.

Moving from 16 to 17

The upgrade guide is brief: take a full backup, flush the queues, change the image tag, start, and run the checker. Database migrations run on their own. This instance was moved from 16.0.7 to 17.0.2 on 28 November, through its Unraid template.

Backup came first. Forgejo and the runner were stopped, the database was dumped with mariadb-dump (2.3 MB, 130 tables) and /data was archived (428 MB, 1,523 entries). The Unraid template was copied and the old image was kept under a local tag. Then the image tag in the template went from :16 to :17 and Unraid recreated the container.

The migrations ran automatically at first start, and /api/healthz answered 200 about 39 seconds after the start. The API reported 17.0.2+gitea-1.22.0. forgejo doctor check ran its 5 checks and all were OK, and the log had no error or panic lines. Git over SSH answered, the web interface was reachable over its private HTTPS address, and the runner, still 12.13.2, declared itself successfully with its label. The whole interruption was a few minutes.

No Actions run had been observed on 17.0.2 yet, and the backup was not restored as a test. The doctor run used the default set of checks, while the guide asks for the wider set with –all. Keeping the old image helps with a rollback, but after migrations assume that going back also needs the old database and files.

Terminal output showing Forgejo 17.0.2, forgejo-runner 12.13.2 and five doctor checks that all report OK
After the upgrade on 28 November: Forgejo 17.0.2, the unchanged runner and the doctor result.

For a compose installation like the example above, the same steps look like this:

docker exec -u git forgejo forgejo manager flush-queues --timeout 5m
# take the backup described above
# edit the compose file: forgejo:16 becomes forgejo:17
docker compose pull server
docker compose up -d server
docker exec -u git forgejo forgejo doctor check --all --log-file /tmp/doctor.log

Version 17 has a few breaking changes to read before you start. Relative resolution of absolute links in rendered documents changed so that they start at the repository root. Action run webhook events are deprecated in favour of workflow run events. The release notes add that durations in the configuration are now parsed strictly and that the log file is called forgejo.log by default. Version 17.0.0 also carried a warning about a problem that could block pushes and merges, so go straight to the newest 17.x. The release installed here is 17.0.2.

Going back to the 15 LTS line from 16 or 17 would be a downgrade, which the upgrade guide does not cover. The route to long-term support from here is to stay current through the quarterly releases until version 19, the next LTS, arrives in 2027. Automatic image updates do not solve this: a pull schedule keeps you on the newest build of the same tag and never crosses a major version.

When it is down

Git is distributed, so existing clones keep working: you can commit, branch and read history. Pushing and pulling through the server stops, as do issues, pull requests, the package registry, mirrors and every workflow. Here that includes the deploy workflow, so a Forgejo outage also pauses whatever that workflow ships. Keep a way to run the deployment by hand.

The place updates come from can go down too. On 18 November 2026 the registrar of codeberg.org suspended the domain, which took the project’s main host offline on the day of a planned security release, as heise reported. The releases appeared later that day. The mirror at data.forgejo.org is a useful second address to know.

Forgejo review: the alternatives

OptionLicence and costFootprintCIFits when
ForgejoGPL 3 or later, freeLightForgejo Actions with its own runnerYou want a community-run forge on your own hardware
GiteaMIT; paid Enterprise tierLightGitea Actions with its own runnerYou want vendor support or already run it happily
GitLab self-managedFree and paid tiersHeavy: 16 GB baselineMature built-in CI with runnersA team needs its wider DevOps tooling and has the hardware
GogsMIT, freeVery lightNot part of the project pageHosting and browsing repositories is enough
GitHubHosted, free tier with limitsNothing to runGitHub ActionsYou do not want to operate a server
CodebergHosted by a non-profitNothing to runCheck what is offered to your projectFree software projects that want Forgejo without hosting it
Bare repositories over SSHFreeNearly nothingHooks you write yourselfOne person who needs a remote and no web interface

Gitea is the closest relative. Its pricing page lists the MIT-licensed open source edition with issues, pull requests, Actions and packages, and an Enterprise edition from 9.50 to 19 US dollars per user per month that adds SAML sign-on, audit logs and support. Forgejo’s own comparison argues for its licence, testing and security process; that page is written by one side, so weigh it as such.

Switching between the two is no longer free of friction. Forgejo supports upgrading from Gitea only up to Gitea 1.22, in two steps through Forgejo 10.0, and nothing newer.

Decision path leading to GitHub, Codeberg, GitLab, Gogs, Gitea or Forgejo
A rough way to choose, following the assessment in this review.

What others say

A How-To Geek article from 15 November 2026 by a writer who moved from GitHub to Forgejo lists control over the data, non-profit governance, low memory use and familiar workflow files as gains. On the other side it counts the work of being your own system administrator, the compatibility gaps in Actions, the smaller audience and fewer third-party tools.

A Hacker News thread from January 2025 is older, and still a fair sample of opinion. Several people praised how light and uneventful it is to run, including one who had moved from Gogs through Gitea to Forgejo. Critics found its code review thin compared with dedicated review tools, saw it as a close copy of GitHub, and questioned how far federation had come.

The Fedora Project chose Forgejo in December 2024 over GitLab, pointing to open contribution and the lack of paid tiers in front of issue tracking features. The same announcement was frank about weaknesses: accessibility problems in the interface framework, comparatively sparse deployment documentation, less upstream activity than GitLab and issue tracking gaps that Fedora’s quality team wanted closed before migrating.

Most of the criticism concerns depth in review, permissions and tooling. A solo developer will rarely hit those limits as hard as a large distribution does.

Limits

The release cycle is the limit most home users will feel. A standard release is supported for about three months, and each new major version wants a backup, a read of the notes and a manual change of tag. The LTS line reduces that to roughly once a year at the price of newer features.

Actions is close enough to GitHub Actions to mislead. Expect to adjust workflows, and expect trouble from actions that call GitHub’s own API.

There is no built-in equivalent of GitHub’s dependency update bot or its hosted macOS and Windows runners. You can add tools such as Renovate and register your own runners on other systems, and each is one more thing to maintain.

Anyone who wants to contribute needs an account on your server and a network path to it, and federation does not change that yet. Search engines and casual visitors will not find a private forge, so public projects usually keep a mirror somewhere popular.

The review itself is narrow. It covers one author, two private repositories and nine days of age. It did not test LFS, the package registry, large teams, OAuth sign-in or a restore, and it has not yet seen a workflow run or taken resource measurements on 17.0.2.

Who should run it, and who should not

Run Forgejo if you want repositories, issues and CI on hardware you control, you already operate Docker containers, and you are willing to treat upgrades as a recurring task with a date in the calendar. A small team that works over a VPN fits too. So does someone who wants a private forge for deployments, as this instance does with its one workflow.

Look elsewhere if you want to install something and not think about it for a year while staying on the newest line, if your project depends on outside contributors finding it, or if you rely on GitHub-only actions and integrations. In those cases a hosted service is less work. An organisation that needs compliance reporting and security scanning built into the forge should price GitLab or a commercial option first.

FAQ

Is Forgejo free?

Yes. It is free software under the GPL, with no paid edition. You pay for the hardware, power and your time.

Is Forgejo the same as Gitea?

No. It began as a fork and has developed separately since early 2024. The interfaces still look alike, and some names in configuration and version strings carry the old heritage.

Do I need MariaDB?

No. SQLite is the default and suits a single user or a small group. This instance uses MariaDB. Pick the database at the start, because changing it later is real work.

Which version should I install today?

Version 17.0.2 or newer for current features, or 15.0.12 or newer for long-term support until 15 July 2027. Do not start on the 16 tag.

Can I expose it to the internet?

You can, behind HTTPS with registration closed, two-factor authentication and prompt patching. If only your own devices need access, a VPN is simpler and safer. Runners deserve extra care on any instance that strangers can reach.

Will my GitHub workflows run?

Many simple ones will. Check the job image, the labels in runs-on, short action references and any job-level permissions. Remember that a .forgejo/workflows folder hides the .github one.

Does it support container images?

Yes, the package registry accepts OCI container images next to the language and distribution formats.

Further reading

Link