ソースを参照

traefik git ssh

Jason Playne 3 年 前
コミット
8c89c78039
2 ファイル変更6 行追加0 行削除
  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
     labels:
       - 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.certresolver=le
+      - traefik.tcp.routers.git.rule=HostSNI(`git.playne.au`)
+      - traefik.tcp.routers.git.loadbalancer.server.port=10022
 
   nextcloud:
     image: nextcloud

+ 3 - 0
network/traefik/traefik.yml

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