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:
32
gitea/compose.yaml
Normal file
32
gitea/compose.yaml
Normal 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
|
||||
Reference in New Issue
Block a user