Files
ansible-playbooks/gitea/compose.yaml
Matt Spencer d7c18b747e 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.
2026-01-18 12:37:12 +00:00

33 lines
769 B
YAML

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