mirror of
https://github.com/StepanovPlaton/HomeServerServices.git
synced 2026-04-03 20:30:44 +04:00
Add gitea (not tested)
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -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
6
gitea/.env.example
Normal 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
0
gitea/config/.keep
Normal file
0
gitea/data/.keep
Normal file
0
gitea/data/.keep
Normal file
0
gitea/db/.keep
Normal file
0
gitea/db/.keep
Normal file
30
gitea/docker-compose.yml
Normal file
30
gitea/docker-compose.yml
Normal 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
|
||||||
Reference in New Issue
Block a user