All checks were successful
continuous-integration/drone/push Build is passing
59 lines
1009 B
HCL
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
|
|
}
|
|
}
|
|
}
|
|
}
|