Files
NomadBackup/nomad_backup/silverbullet.hcl
2026-02-15 02:02:16 +00:00

53 lines
1.0 KiB
HCL

job "silverbullet" {
datacenters = ["dc1"]
type = "service"
group "editor" {
count = 1
network {
port "http" {
to = 3000
}
}
task "silverbullet" {
driver = "docker"
config {
image = "zefhemel/silverbullet"
ports = ["http"]
volumes = [
"/mnt/Public/configs/silverbullet:/space",
]
}
resources {
cpu = 200
memory = 512
}
service {
name = "silverbullet"
port = "http"
tags = [
"silverbullet",
"traefik.http.routers.sblan.rule=Host(`silverbullet.service.dc1.consul`)",
"traefik.http.routers.sbwan.rule=Host(`notes.fbleagh.duckdns.org`)",
"traefik.http.routers.sbwan.middlewares=dex@consulcatalog",
"traefik.http.routers.sbwan.tls=true",
]
check {
type = "http"
path = "/"
interval = "10s"
timeout = "2s"
}
}
}
}
}