Files
NomadBackup/nomad_backup/silverbullet.hcl
2026-02-24 02:02:20 +00:00

55 lines
1.1 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",
]
}
env {
SB_AUTH_TOKEN = "LnKEAFs2nJ6Rjlm6KV7yu6ji7R#!53pkXNuxZMQ9"
}
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"
}
}
}
}
}