Add gitea service

Needed to modify the nginx configuration to allow streaming of ssh.
Using docker compose for this service, will probably migrate all others soon.
This commit is contained in:
2026-01-18 12:37:12 +00:00
parent 0f21b271bc
commit d7c18b747e
8 changed files with 177 additions and 30 deletions

32
gitea/compose.yaml Normal file
View File

@@ -0,0 +1,32 @@
services:
gitea:
image: gitea/gitea:latest
container_name: gitea
# restart: unless-stopped
environment:
# Gitea-supported vars for internal ownership/permissions
- USER_UID=1027
- USER_GID=65536
- TZ=Europe/London
volumes:
# Local: app.ini, database (sqlite by default), queues (LevelDB), sessions, etc.
- gitea-data:/data
# NAS: only repositories (best practice)
- /mnt/gitea-repos:/data/git/repositories
# Optional: put LFS on NAS too
# - /mnt/gitea-lfs:/data/git/lfs
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000" # Web
- "2222:22" # SSH (container 22 -> host 2222)
volumes:
gitea-data:
driver: local