Files
infra/2-nomad-config/transfer.nomad.hcl
Adrian Cowan e695485353
All checks were successful
CI / Terraform fmt + validate (pull_request) Successful in 27s
CI / Nomad job spec validate (pull_request) Successful in 22s
CI / Docker image pull validation (pull_request) Successful in 16s
CI / Terraform fmt + validate (push) Successful in 23s
CI / Nomad job spec validate (push) Successful in 22s
CI / Docker image pull validation (push) Has been skipped
improve health checks across all nomad job specs
- traefik: TCP → HTTP check on /ping (enable ping entrypoint)
- gitea: check path → /api/healthz
- jellyfin: TCP → HTTP check on /health
- glance: TCP → HTTP check on /
- sonarr/prowlarr: check path / → /ping (×2 checks each)
- ntfy/transfer/deluge/openreader/authelia/pgadmin: add name and port to existing checks
- postgres: remove invalid TCP check (Connect-enabled service)
- unifi: TCP → script check via curl (macvlan host isolation workaround)
2026-05-26 20:12:23 +10:00

100 lines
2.0 KiB
HCL

job "transfer" {
group "transfer" {
network {
port "http" {
to = 80
}
}
service {
name = "transfer"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.transfer.middlewares=auth@file",
]
check {
name = "alive"
type = "http"
path = "/"
port = "http"
interval = "10s"
timeout = "2s"
}
}
volume "unraid_transfer" {
type = "csi"
read_only = false
source = "unraid_transfer"
access_mode = "single-node-writer"
attachment_mode = "file-system"
mount_options {
mount_flags = ["uid=911", "gid=1000"] # linuxserver.io container services run as uid 911
}
}
volume "appdata" {
type = "csi"
read_only = false
source = "unraid_appdata_transferfilebrowser"
access_mode = "single-node-writer"
attachment_mode = "file-system"
mount_options {
mount_flags = ["uid=911", "gid=1000"] # linuxserver.io container services run as uid 911
}
}
task "filebrowser" {
driver = "docker"
config {
# Use the s6 tag for the linuxserver.io based image
image = "filebrowser/filebrowser:s6"
ports = ["http"]
volumes = [
"local/config/settings.json:/config/settings.json",
]
}
volume_mount {
volume = "appdata"
destination = "/database"
read_only = false
}
volume_mount {
volume = "unraid_transfer"
destination = "/srv"
read_only = false
}
resources {
cpu = 500
memory = 256
}
template {
data = <<EOF
{
"port": 80,
"baseURL": "",
"address": "",
"log": "stdout",
"database": "/database/filebrowser.db",
"root": "/srv"
}
EOF
destination = "local/config/settings.json"
}
}
}
}