From 5783eea8c9d33ed1db34c1312e8b3542871720fe Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Wed, 9 Mar 2022 12:46:28 +0100 Subject: [PATCH] Add gitea --- gitea/.env | 38 ++++++++++++++++++++++++++++++++++++++ gitea/docker-compose.yml | 21 +++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 gitea/.env create mode 100644 gitea/docker-compose.yml diff --git a/gitea/.env b/gitea/.env new file mode 100644 index 0000000..307127e --- /dev/null +++ b/gitea/.env @@ -0,0 +1,38 @@ +GITEA__database__DB_TYPE="postgres" +GITEA__database__HOST="db.serguzim.me:5432" +GITEA__database__NAME="gitea" +GITEA__database__USER="gitea" +GITEA__database__PASSWD="" +GITEA__database__SSL_MODE="verify-full" +GITEA__repository__ENABLE_PUSH_CREATE_USER="true" +GITEA__repository__ENABLE_PUSH_CREATE_ORG="true" +GITEA__repository__DEFAULT_BRANCH="main" +GITEA__cors__ENABLED="true" +GITEA__cors__SCHEME="https" +GITEA__ui__DEFAULT_THEME="arc-green" +GITEA__server__DOMAIN="git.serguzim.me" +GITEA__server__SSH_DOMAIN="git.serguzim.me" +GITEA__server__SSH_PORT="22" +GITEA__server__ROOT_URL="https://git.serguzim.me/" +GITEA__server__OFFLINE_MODE="true" +GITEA__server__LFS_JWT_SECRET="" +GITEA__server__LFS_START_SERVER="true" +GITEA__security__INSTALL_LOCK="true" +GITEA__security__INTERNAL_TOKEN="" +GITEA__security__SECRET_KEY="" +GITEA__openid__ENABLE_OPENID_SIGNUP="true" +GITEA__openid__ENABLE_OPENID_SIGNIN="false" +GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION="true" +GITEA__service__ENABLE_BASIC_AUTHENTICATION="false" +GITEA__service__NO_REPLY_ADDRESS="discard.msrg.cc" +GITEA__webhook__DELIVER_TIMEOUT="60" +GITEA__mailer__ENABLED="true" +GITEA__mailer__HOST="mail.serguzim.me:587" +GITEA__mailer__FROM="Gitea " +GITEA__mailer__USER="git@serguzim.me" +GITEA__mailer__PASSWD="" +GITEA__mailer__SEND_AS_PLAIN_TEXT="true" +GITEA__picture__DISABLE_GRAVATAR="true" +GITEA__oauth2__JWT_SECRET="" +GITEA__metrics__ENABLED="true" +GITEA__metrics__TOKEN="" diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml new file mode 100644 index 0000000..52def54 --- /dev/null +++ b/gitea/docker-compose.yml @@ -0,0 +1,21 @@ +version: "3" + +services: + server: + image: gitea/gitea:1.15 + container_name: gitea + env_file: + - .env + - .secret.env + restart: always + volumes: + - data:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "3000:3000" + - "3022:22" + - "22:22" + +volumes: + data: