Extend traefik and gitea to be able to clone repositories via ssh.

This commit is contained in:
2021-11-17 05:47:21 +01:00
parent 5d21a25597
commit 3352b83b85
2 changed files with 9 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ services:
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=sadlkf0234lsdf
- GITEA__server__START_SSH_SERVER=true
- GITEA__server__SSH_PORT=22
- GITEA__server__SSH_LISTEN_PORT=222
restart: unless-stopped
volumes:
- gitea:/data
@@ -49,6 +52,10 @@ services:
- "traefik.http.routers.git-secure.tls.certresolver=myresolver"
- "traefik.http.routers.git-secure.tls.domains[0].main=cs-git.ddnss.de"
- "traefik.http.services.git-secure.loadbalancer.server.port=3000"
- "traefik.tcp.routers.git-ssh.entrypoints=ssh"
- "traefik.tcp.routers.git-ssh.rule=HostSNI(`*`)"
- "traefik.tcp.routers.git-ssh.service=git-ssh"
- "traefik.tcp.services.git-ssh.loadbalancer.server.port=222"
nginx-kimai:
image: nginx:alpine