Gitea On Fedora Linux With Podman


I needed a simple way to fire up a personal Gitea instance using Fedora Linux (tested on Fedora 37) and Podman (root-less). Turns out this is very simple for my use case. There are a few guides available online, but they are overly complicated for my needs.

One caveat is that the new Gitea Actions requires a runner that is based on ACT, which does not support Podman at this time. Gitea Actions are still in preview. If you would still like to enable it, you can do so by opening the /data/gitea/conf/app.ini file within the container (or container volume) and adding the following to the bottom:

[actions]
ENABLED=true
Then restart the container.

Requirements

- Podman Desktop (tested with version 1.3.1)
- Podman (tested with version 4.6.1)

Setup

podman volume create gitea_data
podman run -d --name=gitea -p 3000:3000 -p 2222:22 \
  -v gitea_data:/data gitea/gitea:latest-rootless

Once this is done, open a browser and visit http://localhost:3000. Configure it to use SQLite, along with any other configuration customizations you need.