From 46e007987d049c0ff0ad9b5ba629fa824303548f Mon Sep 17 00:00:00 2001 From: wizzdom Date: Tue, 2 Apr 2024 16:16:19 +0100 Subject: [PATCH] add wetty to aperture (#36) --- jobs/services/wetty.hcl | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 jobs/services/wetty.hcl diff --git a/jobs/services/wetty.hcl b/jobs/services/wetty.hcl new file mode 100644 index 0000000..8ada614 --- /dev/null +++ b/jobs/services/wetty.hcl @@ -0,0 +1,51 @@ +job "wetty" { + datacenters = ["aperture"] + + type = "service" + + group "wetty" { + count = 1 + + network { + port "http" { + to = 3000 + } + } + + service { + name = "wetty" + port = "http" + + check { + type = "http" + path = "/" + interval = "10s" + timeout = "2s" + } + + tags = [ + "traefik.enable=true", + "traefik.http.routers.wetty.rule=Host(`wetty.rb.dcu.ie`)", + "traefik.http.routers.wetty.entrypoints=web,websecure", + "traefik.http.routers.wetty.tls.certresolver=lets-encrypt", + ] + } + + task "wetty" { + driver = "docker" + + config { + image = "wettyoss/wetty" + ports = ["http"] + } + template { + destination = "local/.env" + env = true + data = <