diff --git a/README.md b/README.md index db5cc63d..8da4def8 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ Tipi is a personal homeserver orchestrator. It is running docker containers unde - [Nitter](https://github.com/zedeus/nitter) - Alternative Twitter front-end - [Vaultwarden](https://github.com/dani-garcia/vaultwarden) - Unofficial Bitwarden compatible server - [Prowlarr](https://github.com/Prowlarr/Prowlarr/) - A torrent/usenet indexer manager/proxy +- [Gitea](https://github.com/go-gitea/gitea) - Gitea - A painless self-hosted Git service. ## 馃洜 Installation ### Installation Requirements - Ubuntu 18.04 LTS or higher (or Debian 10) diff --git a/apps/gitea/config.json b/apps/gitea/config.json new file mode 100644 index 00000000..6627ad4d --- /dev/null +++ b/apps/gitea/config.json @@ -0,0 +1,12 @@ +{ + "name": "Gitea", + "port": 8108, + "available": true, + "id": "gitea", + "description": "Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket, and GitLab. Gitea is a fork of Gogs. See the Gitea Announcement blog post to read about the justification for a fork.", + "short_desc": "Gitea - Git with a cup of tea 路 A painless self-hosted Git service. 路 Cross-platform 路 Easy to install 路 Lightweight 路 Open Source.", + "author": "ArneNaessens", + "source": "https://github.com/go-gitea/gitea", + "image": "https://avatars.githubusercontent.com/u/12724356?s=200&v=4", + "form_fields": {} +} diff --git a/apps/gitea/docker-compose.yml b/apps/gitea/docker-compose.yml new file mode 100644 index 00000000..9937b444 --- /dev/null +++ b/apps/gitea/docker-compose.yml @@ -0,0 +1,37 @@ +version: "3" + +services: + gitea: + image: gitea/gitea:1.16.8 + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 + - GITEA__database__DB_TYPE=mysql + - GITEA__database__HOST=gitea_db:3306 + - GITEA__database__NAME=tipi_gitea + - GITEA__database__USER=tipi_gitea + - GITEA__database__PASSWD=tipi_gitea + restart: unless-stopped + networks: + - tipi_main_network + volumes: + - ${APP_DATA_DIR}/gitea/data:/data + ports: + - ${APP_PORT}:3000 + - "222:22" + depends_on: + - gitea_db + + gitea_db: + image: mysql:8 + restart: unless-stopped + environment: + - MYSQL_ROOT_PASSWORD=tipi_gitea + - MYSQL_USER=tipi_gitea + - MYSQL_PASSWORD=tipi_gitea + - MYSQL_DATABASE=tipi_gitea + networks: + - tipi_main_network + volumes: + - ${APP_DATA_DIR}/mysql/var/lib/mysql:/var/lib/mysql