1
0
Fork 0

Git: Use more generic terms

This commit is contained in:
Florian RICHER 2024-10-27 16:42:04 +01:00
parent 2c80b43e3d
commit ce3ab9f5f2

View file

@ -1,5 +1,5 @@
services:
gitea:
web:
image: gitea/gitea:latest
environment:
- USER_UID=1000
@ -8,7 +8,6 @@ services:
- GITEA__actions__ENABLED=true
- GITEA__actions__DEFAULT_ACTIONS_URL=self
- GITEA__packages__ENABLED=true
container_name: gitea
restart: unless-stopped
volumes:
- {{ server.work_dir }}/gitea/data/:/data
@ -21,17 +20,17 @@ services:
- traefik.enable=true
- traefik.docker.network=proxy
# HTTP Reverse proxy Gitea
- traefik.http.routers.gitea-secure.entrypoints=https
- traefik.http.routers.gitea-secure.rule=Host(`gitea.{{ server.domain }}`) || Host(`git.{{ server.domain }}`)
- traefik.http.routers.gitea-secure.tls=true
- traefik.http.routers.gitea-secure.tls.certresolver=sslResolver
- traefik.http.routers.gitea-secure.service=gitea
- traefik.http.services.gitea.loadbalancer.server.port=3000
- traefik.http.routers.git-secure.entrypoints=https
- traefik.http.routers.git-secure.rule=Host(`gitea.{{ server.domain }}`) || Host(`git.{{ server.domain }}`)
- traefik.http.routers.git-secure.tls=true
- traefik.http.routers.git-secure.tls.certresolver=sslResolver
- traefik.http.routers.git-secure.service=git
- traefik.http.services.git.loadbalancer.server.port=3000
# TCP SSH Reverse proxy Gitea
- traefik.tcp.routers.gitea-ssh.rule=HostSNI(`*`)
- traefik.tcp.routers.gitea-ssh.entrypoints=ssh
- traefik.tcp.routers.gitea-ssh.service=gitea-ssh
- traefik.tcp.services.gitea-ssh.loadbalancer.server.port=22
- traefik.tcp.routers.git-ssh.rule=HostSNI(`*`)
- traefik.tcp.routers.git-ssh.entrypoints=ssh
- traefik.tcp.routers.git-ssh.service=git-ssh
- traefik.tcp.services.git-ssh.loadbalancer.server.port=22
logging:
driver: loki
options:
@ -42,7 +41,7 @@ services:
image: gitea/act_runner
restart: unless-stopped
depends_on:
- gitea
- web
volumes:
- ./config.yml:/config.yml
- {{ server.work_dir }}/gitea/runner/:/data