aboutsummaryrefslogtreecommitdiff
path: root/app/deployment/traefik.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'app/deployment/traefik.hcl')
-rw-r--r--app/deployment/traefik.hcl24
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"