commit 612c3707f6ee20d6bff256b9818534eb9aa062da Author: distro Date: Tue Oct 11 19:26:58 2022 +0100 adds traefik job file diff --git a/traefik.hcl b/traefik.hcl new file mode 100644 index 0000000..03d1b09 --- /dev/null +++ b/traefik.hcl @@ -0,0 +1,67 @@ +job "traefik" { + datacenters = ["aperture"] + type = "system" + + group "traefik" { + network { + port "http"{ + static = 80 + } + port "https" { + static = 443 + } + port "admin"{ + static = 8080 + } + } + + service { + name = "traefik-http" + provider = "nomad" + port = "https" + } + + task "traefik" { + driver = "docker" + config { + image = "traefik:2.8" + network_mode = "host" + + volumes = [ + "local/traefik.toml:/etc/traefik/traefik.toml", + ] + } + + template { + data = <