compose/gitea.yaml aktualisiert
This commit is contained in:
42
compose/gitea.yaml
Normal file
42
compose/gitea.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
gitea:
|
||||
external: false
|
||||
|
||||
name: gitea
|
||||
services:
|
||||
server:
|
||||
image: ghcr.io/go-gitea/gitea:1.25.4
|
||||
environment:
|
||||
- GITEA_database_DB_TYPE=postgres
|
||||
- GITEA_database_HOST=db:5432
|
||||
- GITEA_database_NAME=gitea
|
||||
- GITEA_database_USER=gitea
|
||||
- GITEA_database_PASSWD=gitea
|
||||
volumes:
|
||||
- /srv/gitea/data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
networks:
|
||||
- gitea
|
||||
- proxy
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- db
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.gitea.rule=Host(`git.example.com`)
|
||||
- traefik.http.services.gitea.loadbalancer.server.port=3000
|
||||
|
||||
db:
|
||||
image: postgres:18
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=gitea
|
||||
- POSTGRES_DB=gitea
|
||||
volumes:
|
||||
- /srv/gitea/postgres:/var/lib/postgresql
|
||||
networks:
|
||||
- gitea
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user