{"id":19269523,"url":"https://github.com/status-im/infra-role-gitea","last_synced_at":"2026-04-15T09:31:25.103Z","repository":{"id":85457687,"uuid":"554939027","full_name":"status-im/infra-role-gitea","owner":"status-im","description":"Ansible role for Gitea service","archived":false,"fork":false,"pushed_at":"2025-01-09T12:30:18.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-22T17:43:26.060Z","etag":null,"topics":["ansible-role","git","infra"],"latest_commit_sha":null,"homepage":"https://gitea.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/status-im.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-20T17:01:38.000Z","updated_at":"2025-01-09T12:30:21.000Z","dependencies_parsed_at":"2024-11-09T20:21:14.479Z","dependency_job_id":"304682e3-679d-4038-9339-ca1acf496ab6","html_url":"https://github.com/status-im/infra-role-gitea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-gitea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-gitea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-gitea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-gitea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/status-im","download_url":"https://codeload.github.com/status-im/infra-role-gitea/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240371761,"owners_count":19790888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible-role","git","infra"],"created_at":"2024-11-09T20:20:17.866Z","updated_at":"2026-04-15T09:31:25.096Z","avatar_url":"https://github.com/status-im.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nThis role configures an instance of [Gitea](https://gitea.io/) using Docker Compose.\n\n# Configuration\n\n```yaml\ngitea_app_name: 'Example.org Repos'\ngitea_app_web_domain: 'gitea.example.org'\ngitea_app_ssh_domain: 'git.example.org'\ngitea_app_ssh_port: 22\ngitea_app_secret_key: 'super-secret-key'\ngitea_app_log_level: 'debug'\n\n# DB\ngitea_db_pass: 'super-secret-db-pass'\n\n# Admin\ngitea_app_admin_user: 'root'\ngitea_app_admin_pass: 'secret-root-pass'\ngitea_app_admin_email: 'root@example.org'\n```\n\n## Initialisation\n\nOrganization can be initialised  with:\n```yaml\ngitea_organizations:\n  - org1\n  - org2\n```\n\n## Purge\n\nA purge is run daily and remove all containers older than `gitea_purge_max_retention` days.\n\nIt can be configure with:\n\n```yaml\ngitea_container_purge_timer_frequency: 'daily'\ngitea_purge_max_retention:   15\n```\n\n# Administration\n\nYou can manage the services using Docker Compose:\n```\n \u003e docker-compose ps\n  Name                 Command               State                           Ports                         \n-----------------------------------------------------------------------------------------------------------\ngitea-app   /usr/bin/entrypoint /bin/s ...   Up      22/tcp, 0.0.0.0:2222-\u003e2222/tcp, 0.0.0.0:3000-\u003e3000/tcp\ngitea-db    docker-entrypoint.sh postgres    Up      0.0.0.0:5432-\u003e5432/tcp  \n```\nFor example you can easily re-create containers:\n```\n \u003e docker-compose up --force-recreate -d\nRecreating gitea-db ... done\nRecreating gitea-app ... done\n```\n\n# Backup \u0026 Restore\n\nSee [BACKUP.md](./BACKUP.md) doc.\n\nA Systemd timer creates `pg_dump` backups of the PostgreSQL database daily:\n```\n \u003e sudo systemctl list-timers -a dump-gitea-db\nNEXT                        LEFT    LAST PASSED UNIT                ACTIVATES            \nSat 2021-03-20 00:00:00 UTC 9h left n/a  n/a    dump-gitea-db.timer dump-gitea-db.service\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatus-im%2Finfra-role-gitea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatus-im%2Finfra-role-gitea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatus-im%2Finfra-role-gitea/lists"}