add entrypoint for ssh

This commit is contained in:
vincent 2022-04-27 13:04:57 +02:00
parent 15d75f243a
commit 93a5265c55

View File

@ -11,7 +11,10 @@ job "traefik-local" {
port "https" { port "https" {
static = 443 static = 443
} }
port "admin" { port "ssh" {
static = 2222
}
port "admin" {
static = 9080 static = 9080
} }
} }
@ -43,7 +46,8 @@ job "traefik-local" {
ports = [ ports = [
"http", "http",
"https", "https",
"admin" "admin",
"ssh"
] ]
volumes =[ volumes =[
"local/traefik.toml:/etc/traefik/traefik.toml", "local/traefik.toml:/etc/traefik/traefik.toml",
@ -72,6 +76,8 @@ job "traefik-local" {
address = ":443" address = ":443"
[entryPoints.traefik] [entryPoints.traefik]
address = ":9080" address = ":9080"
[entrypoints.ssh]
address = ":2222"
[http.middlewares] [http.middlewares]
[http.middlewares.https-redirect.redirectscheme] [http.middlewares.https-redirect.redirectscheme]
scheme = "https" scheme = "https"