nomad/homer/homer.nomad

47 lines
713 B
Plaintext
Raw Normal View History

2022-09-09 23:37:09 +00:00
job "homer" {
region = "global"
datacenters = ["dc1"]
type = "service"
group "homer" {
count = 1
network {
port "homer" {}
}
task "homer" {
driver = "docker"
env {
PORT = "${NOMAD_PORT_homer}"
}
config {
image = "b4bz/homer:latest"
ports = ["homer"]
volumes = [
"local/config.yml:/www/assets/config.yml"
]
}
template {
data = "{{ key `homer/config.yml` }}"
destination = "local/config.yml"
}
service {
name = "homer"
port = "homer"
tags = [
"traefik.enable=true",
2023-07-30 04:32:34 +00:00
"traefik.http.routers.homer.rule=Host(`dashboard.elara.ws`)",
2022-09-09 23:37:09 +00:00
"traefik.http.routers.homer.tls.certResolver=letsencrypt",
]
}
}
}
}