Add gitea (not tested)

This commit is contained in:
2026-01-04 07:22:47 -06:00
parent 9846d5704c
commit e340288d49
6 changed files with 42 additions and 0 deletions

6
.gitignore vendored
View File

@@ -2,10 +2,16 @@
!.env.example !.env.example
syncthing/config/* syncthing/config/*
transmission/config/* transmission/config/*
proxy/nginx/init/default.conf proxy/nginx/init/default.conf
proxy/nginx/conf.d/default.conf proxy/nginx/conf.d/default.conf
proxy/ssl/conf/* proxy/ssl/conf/*
proxy/ssl/www/* proxy/ssl/www/*
gitea/data/*
gitea/db/*
gitea/config/*
!.keep !.keep

6
gitea/.env.example Normal file
View File

@@ -0,0 +1,6 @@
GITEA_DB=gitea-db
GITEA_DB_USER=user
GITEA_DB_PASSWORD=password
GITEA_HTTP_PORT=3000
GITEA_SSH_PORT=2222

0
gitea/config/.keep Normal file
View File

0
gitea/data/.keep Normal file
View File

0
gitea/db/.keep Normal file
View File

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

@@ -0,0 +1,30 @@
services:
gitea:
image: docker.gitea.com/gitea:1.25.3-rootless
environment:
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=${GITEA_DB:?}
- GITEA__database__USER=${GITEA_DB_USER:?}
- GITEA__database__PASSWD=${GITEA_DB_PASSWORD:?}
restart: always
volumes:
- ./data:/var/lib/gitea
- ./config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- ${GITEA_HTTP_PORT:?}:3000
- ${GITEA_SSH_PORT:?}:2222
depends_on:
- db
db:
image: docker.io/library/postgres:14
restart: always
environment:
- POSTGRES_USER=${GITEA_DB_USER:?}
- POSTGRES_PASSWORD=${GITEA_DB_PASSWORD:?}
- POSTGRES_DB=${GITEA_DB:?}
volumes:
- ./db:/var/lib/postgresql/data