Gitea is a lightweight, self-hosted DevOps platform with features such as Git hosting, code review, team collaboration, package registry, and CI/CD.
To ensure that Gitea meets your needs, it is recommended to read the comparison table for Gitea and other competing products (e.g. GitLab CE) before installing it.
Install Podman 1
Podman can be installed using package managers (recommended) or manually build from source.
|
|
If you are using RHEL, please read the appropriate docs in the Red Hat Knowledgebase.
Install Podman Compose 2
Podman itself does NOT support the compose specification. To use features like Docker Compose with Podman, we need to install a community-maintained utility named Podman Compose.
Alternatively, since Podman has native support for Kubernetes, you can use Kubernetes configurations to run Gitea instead.
It is suggested to install Podman Compose using pip, a package manager for Python packages.
|
|
If you get errors saying externally-managed-environment, here are two ways to resolve this issue.
|
|
Write Compose File 3
Podman Compose uses the same syntax as Docker Compose. So you can even just copy the docker-compose.yml from the official Gitea docs.
Below is my compose file for reference.
|
|
To use my configuration, you will need to enter the following commands.
|
|
Note: Gitea uses SQLite as the default database. If you want to use an external database (MySQL or PostgreSQL), please add the corresponding part after Gitea’s compose configuration.
Configure Gitea
After starting the container, you should visit http://SERVER_IP:3000
and follow the installation wizard. The first user registered will become the admin.
Then, you can find the configuration file for Gitea at CUSTOM_FOLDER/gitea/conf/app.ini
, which includes the settings you entered in the installation wizard.
Email Notification 4
Gitea supports the following protocols: smtp, smtps, smtp+starttls, smtp+unix, sendmail, dummy. The most common protocol is smtps, so if you are not sure which one to use, use that one.
The value of FROM attribute should be something like Sender Name <Email Address>
, e.g. Gitea <[email protected]>
. You can also just simply enter the email address [email protected]
.
If your password contains special characters, you should include single quotation marks ('
) on both sides of your password.
|
|
Other Settings
See the Cheat Sheet for explanations of more configuration items such as SSL, Git LFS, and Oauth.
End
Now, enjoy your Gitea - git with a cup of tea!
-
Podman Official Docs
https://podman.io/docs/installation ↩︎ -
Podman Compose Github Repository
https://github.com/containers/podman-compose ↩︎ -
Gitea Official Docs: Installation with Docker
https://docs.gitea.com/installation/install-with-docker ↩︎ -
Gitea Official Docs: Email setup
https://docs.gitea.com/administration/email-setup ↩︎