Add gitea
This commit is contained in:
parent
21798a5962
commit
5783eea8c9
2 changed files with 59 additions and 0 deletions
38
gitea/.env
Normal file
38
gitea/.env
Normal file
|
@ -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 <git@serguzim.me>"
|
||||
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=""
|
21
gitea/docker-compose.yml
Normal file
21
gitea/docker-compose.yml
Normal file
|
@ -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:
|
Reference in a new issue