feat: gitea
This commit is contained in:
7
gitea/core/.env.example
Normal file
7
gitea/core/.env.example
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
USER_UID=1000
|
||||||
|
USER_GID=1000
|
||||||
|
GITEA__database__DB_TYPE=postgres
|
||||||
|
GITEA__database__HOST=db:5432
|
||||||
|
GITEA__database__NAME=gitea
|
||||||
|
GITEA__database__USER=gitea
|
||||||
|
GITEA__database__PASSWD=
|
||||||
@@ -1,14 +1,25 @@
|
|||||||
services:
|
services:
|
||||||
server:
|
gitea:
|
||||||
image: docker.gitea.com/gitea:1.24.6
|
image: docker.gitea.com/gitea:1.24.6
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
env_file:
|
||||||
- USER_UID=1000
|
- .env
|
||||||
- USER_GID=1000
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./gitea:/data
|
- ./gitea:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
ports:
|
ports:
|
||||||
- "50005:3000"
|
- "50005:3000"
|
||||||
- "22:2222"
|
- "22:22"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
db:
|
||||||
|
image: docker.io/library/postgres:14
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=gitea
|
||||||
|
- POSTGRES_PASSWORD=gitea
|
||||||
|
- POSTGRES_DB=gitea
|
||||||
|
volumes:
|
||||||
|
- ./postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user