Files
nomad-nummer5/apps/drone/live-runner.hcl
Udo Waechter 91fff0b276
All checks were successful
continuous-integration/drone/push Build is passing
updates and ring86 docks
2024-02-19 14:49:55 +01:00

62 lines
1.2 KiB
HCL

job "drone-runner" {
datacenters = [
"nummer5",
]
type = "service"
group "apps" {
count = 1
network {
mode = "host"
port "http" {
to = 3000
}
}
service {
name = "drone-runner"
port = "http"
}
restart {
attempts = 5
delay = "30s"
}
task "drone-runner" {
driver = "podman"
config {
image = "docker.io/drone/drone-runner-docker:latest"
force_pull = true
ports = ["http"]
volumes = [
"/var/run/podman/podman.sock:/var/run/docker.sock",
"/etc/containers:/etc/containers"
]
}
env {
TZ = "Europe/Berlin"
DRONE_RUNNER_NAME = "drone-runner01"
DRONE_RPC_SECRET = "7eb685ed81d0c34bafc5efa7783c20b2"
DRONE_RPC_HOST = "drone.service.nr5"
DRONE_RPC_PROTO = "http"
DRONE_RUNNER_CAPACITY = 1
DRONE_LOGS_DEBUG = true
DRONE_LOGS_TRACE = true
DOCKER_BUILDKIT = 1
}
resources {
cpu = 300
memory = 1500
}
}
}
}