Files
nomad-nummer5/apps/openwrt/live.hcl
Udo Waechter d6dac9bd5c
All checks were successful
continuous-integration/drone/push Build is passing
priorities for jobs
2024-03-25 19:48:27 +01:00

59 lines
1009 B
HCL

job "openwrt" {
datacenters = ["nummer5"]
node_pool = "apps"
priority = 10
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
}
}
}
}