Files
nomad-nummer5/apps/openwrt/live.hcl
2024-02-28 10:57:22 +01:00

57 lines
974 B
HCL

job "openwrt" {
datacenters = ["nummer5"]
group "apps" {
count = 1
network {
port "http"{
to = 9091
}
}
service {
name = "openwrt"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.openwrt.rule=Host(`openwrt.service.nr5`)",
]
}
volume "openwrt" {
type = "csi"
read_only = false
source = "openwrt"
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
task "openwrt" {
driver = "podman"
config {
image = "docker.io/jitesoft/lighttpd"
ports = ["http"]
}
env {
PORT = 9091
SERVER_ROOT = "/www"
SERVER_NAME = "openwrt.service.nr5"
}
volume_mount {
volume = "openwrt"
destination = "/www"
}
resources {
cpu = 10
memory = 32
}
}
}
}