From e274bfac7081f878c4323972a27f2c538c8c19f5 Mon Sep 17 00:00:00 2001 From: Dziad Borowy Date: Mon, 20 Feb 2023 15:14:50 +0000 Subject: [PATCH] gitea --- README.md | 2 +- apps/git/gitea.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 apps/git/gitea.md diff --git a/README.md b/README.md index 4748576..c19123d 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ The aims is to provide a ready-to-run recipes that you can just copy, paste and # GIT -- [Gitea](https://docs.gitea.io/en-us/install-with-docker/) 🔗 +- [Gitea](apps/git/gitea.md) - [GitLab](https://about.gitlab.com/) 🔗 - [Gogs](https://gogs.io/) 🔗 - [Phabricator](https://secure.phabricator.com/book/phabricator/article/configuration_guide/) 🔗 diff --git a/apps/git/gitea.md b/apps/git/gitea.md new file mode 100644 index 0000000..d3a2908 --- /dev/null +++ b/apps/git/gitea.md @@ -0,0 +1,58 @@ +# Gitea + +Gitea is your local git portal, similar to Github/Gitlab but lightweight and simple. +Can easily mirror repos from different sources (periodically re-syncing them), as a backup. + +
+ +- [Homepage](https://gitea.io/en-us/) +- [Github repo](https://github.com/go-gitea/) +- [Docker guide](https://docs.gitea.io/en-us/install-with-docker/) + + +## docker-compose.yml +```yml +--- +services: + db: + image: postgres:14 + container_name: gitea-db + restart: unless-stopped + environment: + - POSTGRES_USER=gitea + - POSTGRES_PASSWORD=gitea + - POSTGRES_DB=gitea + volumes: + - ./postgres:/var/lib/postgresql/data + + server: + image: gitea/gitea + container_name: gitea + restart: unless-stopped + depends_on: + - db + environment: + - USER_UID=1000 + - USER_GID=1000 + - GITEA__database__DB_TYPE=postgres + - GITEA__database__HOST=db:5432 + - GITEA__database__NAME=gitea + - GITEA__database__USER=gitea + - GITEA__database__PASSWD=gitea + - GITEA__mailer__ENABLED=true + - GITEA__mailer__FROM=git@domain.com + - GITEA__mailer__MAILER_TYPE=smtp + - GITEA__mailer__HOST=smtp.fastmail.com + - GITEA__mailer__IS_TLS_ENABLED=true + - GITEA__mailer__USER=tom@domain.com + - GITEA__mailer__PASSWD=abcdefg_1234567890 + volumes: + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + - ./gitea:/data + ports: + - "4000:3000" + - "4022:22" +``` + +**Note:** Remember to put the correct URL in the first setup screen (including `http(s)`).