From 40ac89f9f8e08e339eaf4e64a9eaaab76edfe3f0 Mon Sep 17 00:00:00 2001 From: Arne Naessens Date: Sun, 22 May 2022 12:03:02 +0200 Subject: [PATCH] Add gitea --- README.md | 1 + apps/gitea/config.json | 12 ++++++++++++ apps/gitea/docker-compose.yml | 37 +++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 apps/gitea/config.json create mode 100644 apps/gitea/docker-compose.yml diff --git a/README.md b/README.md index f66e8aa5..1b044fcb 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Tipi is a personal homeserver orchestrator. It is running docker containers unde - [Transmission](https://github.com/transmission/transmission) - Fast, easy, and free BitTorrent client - [Wireguard Easy](https://github.com/WeeJeWel/wg-easy) - WireGuard VPN + Web-based Admin UI - [Adguard Home](https://github.com/AdguardTeam/AdGuardHome) - Adguard Home DNS adblocker +- [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