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" } } } } }