Browse Source

traefik git ssh

Jason Playne 3 years ago
parent
commit
8c89c78039
2 changed files with 6 additions and 0 deletions
  1. 3 0
      network/docker-compose.yml
  2. 3 0
      network/traefik/traefik.yml

+ 3 - 0
network/docker-compose.yml

@@ -71,8 +71,11 @@ services:
       - git_data:/data
       - git_data:/data
     labels:
     labels:
       - traefik.http.routers.git.rule=Host(`git.playne.au`)
       - traefik.http.routers.git.rule=Host(`git.playne.au`)
+      - traefik.http.services.git.loadbalancer.server.port=3000
       - traefik.http.routers.git.tls=true
       - traefik.http.routers.git.tls=true
       - traefik.http.routers.git.tls.certresolver=le
       - traefik.http.routers.git.tls.certresolver=le
+      - traefik.tcp.routers.git.rule=HostSNI(`git.playne.au`)
+      - traefik.tcp.routers.git.loadbalancer.server.port=10022
 
 
   nextcloud:
   nextcloud:
     image: nextcloud
     image: nextcloud

+ 3 - 0
network/traefik/traefik.yml

@@ -6,6 +6,9 @@ providers:
     endpoint: unix:///var/run/docker.sock
     endpoint: unix:///var/run/docker.sock
 
 
 entryPoints:
 entryPoints:
+  gitssh:
+    address: ":10022"
+
   web:
   web:
     address: ":80"
     address: ":80"