diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-10-28 12:08:23 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-10-28 12:08:23 +0100 |
commit | 2ef6ab18818e059581cf5744311be223bc5bad96 (patch) | |
tree | 9cc0065fecb8515944c83905c28ad1cc60fbba5f /app/deployment/traefik.hcl | |
parent | f4a88fa5659ca658643d3ff07acf9723104d181b (diff) | |
download | infrastructure-2ef6ab18818e059581cf5744311be223bc5bad96.tar.gz infrastructure-2ef6ab18818e059581cf5744311be223bc5bad96.zip |
Simplify configuration
Diffstat (limited to 'app/deployment/traefik.hcl')
-rw-r--r-- | app/deployment/traefik.hcl | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/app/deployment/traefik.hcl b/app/deployment/traefik.hcl index a0803e4..bb724df 100644 --- a/app/deployment/traefik.hcl +++ b/app/deployment/traefik.hcl @@ -9,11 +9,7 @@ job "frontend" { config { image = "amd64/traefik:1.7.20" readonly_rootfs = true - port_map { - https_port = 443 - http_port = 80 - adm_port = 8082 - } + network_mode = "host" volumes = [ "secrets/traefik.toml:/etc/traefik/traefik.toml", ] @@ -21,17 +17,6 @@ job "frontend" { resources { memory = 265 - network { - port "https_port" { - static = "443" - } - port "http_port" { - static = "80" - } - port "adm_port" { - static = "8082" - } - } } service { @@ -40,13 +25,14 @@ job "frontend" { "frontend", "(diplonat (tcp_port 80 443))" ] - port = "https_port" - address_mode = "host" + port = 443 + address_mode = "driver" name = "traefik" check { type = "http" protocol = "http" - port = "adm_port" + port = 8082 + address_mode = "driver" path = "/ping" interval = "60s" timeout = "5s" |