homer. a frontpage

This commit is contained in:
2023-11-14 18:26:13 +01:00
parent 1eb2a0e5fd
commit 2b40994337
2 changed files with 70 additions and 0 deletions

50
apps/homer/live.hcl Normal file
View File

@@ -0,0 +1,50 @@
job "homer" {
datacenters = ["nummer5"]
group "apps" {
count = 1
network {
port "http"{
to = 8080
}
}
service {
name = "homer"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.http.rule=Host(`homer.service.nr5`)",
]
}
volume "homer-assets" {
type = "csi"
read_only = false
source = "homer-assets"
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
task "homer" {
driver = "podman"
config {
image = "b4bz/homer:latest"
ports = ["http"]
}
volume_mount {
volume = "homer-assets"
destination = "/www/assets"
}
}
resources {
cpu = 10
memory = 32
}
}
}