homelab/nomad-job/syncthing.nomad

56 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-05-23 17:46:33 +00:00
job "syncthing" {
2022-09-09 15:19:07 +00:00
datacenters = ["hetzner"]
2022-05-23 17:46:33 +00:00
type = "service"
meta {
forcedeploy = "0"
}
group "syncthing"{
network {
mode = "host"
port "http" {
to = 8384
}
port "listen"{
static = 22000
}
port "discovery" {
static = 21027
}
}
vault{
2022-07-21 16:42:49 +00:00
policies= ["access-tables"]
2022-05-23 17:46:33 +00:00
}
task "syncthing" {
driver = "docker"
service {
name = "syncthing-web"
port = "http"
2022-05-23 19:44:34 +00:00
tags = [
"homer.enable=true",
"homer.name=Syncthing",
"homer.service=Application",
"homer.logo=http://${NOMAD_ADDR_http}/assets/img/logo-horizontal.svg",
"homer.target=_blank",
"homer.url=http://${NOMAD_ADDR_http}",
]
2022-05-23 17:46:33 +00:00
}
config {
image = "linuxserver/syncthing"
ports = ["http"]
volumes = [
"/mnt/diskstation/nomad/syncthing/config:/config",
"/mnt/diskstation/nomad/syncthing/data:/data1"
]
}
resources {
memory = 200
}
}
}
}