A painless self-hosted Git service
Go to file
f 8ffd4d33be
Some checks failed
continuous-integration/drone/tag Build is failing
continuous-integration/drone/push Build is passing
chore: publish 3.2.0+1.23.1-rootless release
2025-01-21 10:23:43 -03:00
release chore: publish 3.0.0+1.22.2-rootless release 2024-10-30 13:25:04 -04:00
.drone.yml update backupbot label 2024-10-24 17:01:04 +02:00
.env.sample Merge pull request 'feat: toggle push to create' (#40) from push-to-create into master 2025-01-08 12:53:04 +00:00
.gitignore Bootstrap Gitea repository 2020-06-17 08:21:19 +02:00
abra.sh feat: toggle push to create 2025-01-07 13:43:02 -03:00
app.ini.tmpl Merge pull request 'feat: toggle push to create' (#40) from push-to-create into master 2025-01-08 12:53:04 +00:00
compose.forgejo.yml feat: update forgejo to version 10.0.0 2025-01-21 10:23:08 -03:00
compose.mariadb.yml feat: sqlite3 support 2025-01-07 13:30:03 -03:00
compose.postgres.yml chore: publish 3.0.2+1.22.6-rootless release 2025-01-08 12:56:24 -05:00
compose.smtp.yml Whoops, typo 😳 2025-01-14 17:37:38 -05:00
compose.sqlite3.yml feat: sqlite3 support 2025-01-07 13:30:03 -03:00
compose.yml chore: publish 3.2.0+1.23.1-rootless release 2025-01-21 10:23:43 -03:00
docker-setup.sh.tmpl Don't run installs here 2021-04-29 16:12:14 +02:00
LICENSE Add LICENSE 2020-06-17 08:30:59 +02:00
pg_backup.sh update backupbot label 2024-10-24 17:01:04 +02:00
README.md Add healthcheck, update metadata 2024-03-30 16:05:32 -03:00

Gitea

Build Status

  • Category: Development
  • Status: 5
  • Image: gitea/gitea, 4, upstream
  • Healthcheck: Yes
  • Backups: Yes
  • Email: Yes
  • Tests: 2
  • SSO: 3 (OAuth)

Basic usage

  1. Set up Docker Swarm and [abra][abra]
  2. Deploy [coop-cloud/traefik][cc-traefik]
  3. abra app new gitea --secrets (optionally with --pass if you'd like to save secrets in pass)
  4. abra app config YOURAPPDOMAIN - be sure to change $DOMAIN to something that resolves to your Docker swarm box
  5. abra app deploy YOURAPPDOMAIN

Create first user

Run

abra app run YOURAPPNAME app gitea -c /etc/gitea/app.ini admin user create --username USERNAME --admin --random-password --email EMAIL

See the Gitea command-line documentation for more options. Make sure not to forget the -c /etc/gitea/app.ini.

Enable SSH

You most certainly want to be able to access your repository over SSH. To do so, make sure you uncomment the right lines in the configuration for traefik.

abra app config YOURTRAEFIKAPP

There uncomment or add these lines:

GITEA_SSH_ENABLED=1
COMPOSE_FILE="compose.yml:compose.gitea.yml"

Then redeploy traefik:

abra app undeploy YOURTRAEFIKAPP
abra app deploy YOURTRAEFIKAPP

You might need to wait a bit. To check if it worked, you can run

telnet my.gitea.example.com 2222

Once you have added a public SSH key, you can check that you can connect to your gitea server with

ssh -T -p 2222 git@my.gitea.example.com

Note that gitea should be configured to listen to port 2222, i.e. GITEA_SSH_PORT=2222 in the gitea config.