From c4246661efc9efae738843875a957ca03f347094 Mon Sep 17 00:00:00 2001 From: Zuma Date: Fri, 7 Nov 2025 14:47:50 +0100 Subject: [PATCH] Added example caddy file for job --- apps/caddy/caddy.hcl | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 apps/caddy/caddy.hcl diff --git a/apps/caddy/caddy.hcl b/apps/caddy/caddy.hcl new file mode 100644 index 0000000..e740f15 --- /dev/null +++ b/apps/caddy/caddy.hcl @@ -0,0 +1,39 @@ +job "caddy" { + datacenters = [ "gribse-house", "zuma-house", "mayel-house" ] + type = "system" + priority = 90 + + group "caddy" { + network { + port "http_port" { static = 80 } + port "https_port" { static = 443 } + } + + task "server" { + driver = "docker" + + config { + image = "caddy" + network_mode = "host" + ports = [ "http_port", "https_port" ] + } + + resources { + cpu = 1000 + memory = 400 + } + + service { + name = "caddy-http" + port = "http_port" + address_mode = "host" + } + + service { + name = "caddy-https" + port = "https_port" + address_mode = "host" + } + } + } +}