Replace gitlab with gitea

Leave gitlab in place for a bit in case I need to get at data
This commit is contained in:
Jake Howard
2021-01-18 20:14:38 +00:00
parent f519b18d38
commit 41915ec69c
8 changed files with 189 additions and 1 deletions

View File

@ -0,0 +1,33 @@
version: "2.3"
services:
gitea:
image: gitea/gitea:1.13.1
restart: unless-stopped
environment:
- USER_UID={{ docker_user.id }}
- USER_GID={{ docker_user.id }}
ports:
- 3022:3022
depends_on:
- db
volumes:
- "{{ app_data_dir }}/gitea/app.ini:/data/gitea/conf/app.ini"
- "{{ app_data_dir }}/gitea/:/data"
- /mnt/tank/files/repositories:/data/git
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels:
- traefik.enable=true
- traefik.http.routers.gitea.rule=Host(`git.theorangeone.net`)
- traefik.http.routers.gitea.tls.certresolver=le
- traefik.http.services.gitea-gitea.loadbalancer.server.port=3000
db:
image: postgres:12-alpine
restart: unless-stopped
volumes:
- /mnt/tank/dbs/postgres/gitea/:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=gitea
- POSTGRES_USER=gitea

View File

@ -0,0 +1,87 @@
APP_NAME = Git with a cup of orange juice
RUN_USER = git
RUN_MODE = prod
[oauth2]
JWT_SECRET = {{ gitea_jwt_secret }}
[security]
INTERNAL_TOKEN = {{ gitea_internal_token }}
INSTALL_LOCK = true
SECRET_KEY = {{ gitea_secret_key }}
COOKIE_USERNAME = gitea_username
COOKIE_REMEMBER_NAME = gitea_remember
LOGIN_REMEMBER_DAYS = 28
[database]
DB_TYPE = postgres
HOST = db:5432
NAME = gitea
USER = gitea
PASSWD = gitea
SSL_MODE = disable
CHARSET = utf8
LOG_SQL = false
[repository]
ROOT = /data/git/repositories
[server]
SSH_DOMAIN = gitea
DOMAIN = git.theorangeone.net
HTTP_PORT = 3000
ROOT_URL = https://git.theorangeone.net
DISABLE_SSH = false
SSH_PORT = 22
SSH_LISTEN_PORT = 3022
START_SSH_SERVER = true
LFS_START_SERVER = true
LFS_CONTENT_PATH = /data/git/lfs
LFS_JWT_SECRET = {{ gitea_lfs_jwt_secret }}
OFFLINE_MODE = false
LANDING_PAGE = explore
ENABLE_GZIP = true
APP_DATA_PATH = /data/gitea
[service]
DISABLE_REGISTRATION = true
[picture]
ENABLE_FEDERATED_AVATAR = true
AVATAR_UPLOAD_PATH = /data/gitea/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars
[session]
PROVIDER_CONFIG = /data/gitea/sessions
PROVIDER = file
COOKIE_NAME = session
COOKIE_SECURE = true
[log]
MODE = console
LEVEL = info
[cache]
ADAPTER = memory
INTERVAL = 60
[cron]
RUN_AT_START = true
[ui]
EXPLORE_PAGING_NUM = 1000
DEFAULT_THEME = gitea
THEMES = gitea,arc-green
USE_SERVICE_WORKER = false
SHOW_USER_EMAIL = false
[ui.meta]
AUTHOR = {{ name }}
DESCRIPTION = Git with a cup of orange juice
[indexer]
ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve
[other]
SHOW_FOOTER_VERSION = false
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false