gitea setup

This commit is contained in:
2026-03-22 12:04:19 +01:00
parent e12cdb6e68
commit cf57bc163f
2 changed files with 25 additions and 0 deletions

8
gitea/.env.example Normal file
View File

@@ -0,0 +1,8 @@
# Gitea uses SQLite by default (sufficient for single user)
GITEA__database__DB_TYPE=sqlite3
# Server
GITEA__server__ROOT_URL=https://git.t-gstone.de
GITEA__server__SSH_DOMAIN=git.t-gstone.de
GITEA__server__SSH_PORT=2222
GITEA__server__SSH_LISTEN_PORT=2222

17
gitea/docker-compose.yml Normal file
View File

@@ -0,0 +1,17 @@
services:
gitea:
image: gitea/gitea:latest-rootless
container_name: gitea
restart: unless-stopped
env_file: .env
volumes:
- ${DATA_ROOT}/gitea/data:/var/lib/gitea
- ${DATA_ROOT}/gitea/config:/etc/gitea
ports:
- "2222:2222"
networks:
- proxy
networks:
proxy:
external: true