This commit is contained in:
vincent 2022-05-12 11:37:38 +02:00
parent 901643a4dd
commit a124d94d2e
3 changed files with 23 additions and 20 deletions

View File

@ -24,15 +24,18 @@ job "grafana" {
} }
task "dashboard" { task "dashboard" {
driver = "docker" driver = "docker"
config { config {
image = "grafana/grafana" image = "grafana/grafana"
ports = ["http"] ports = ["http"]
volumes = [ volumes = [
"/mnt/diskstation/nomad/grafana/config:/etc/grafana", "/mnt/diskstation/nomad/grafana/config:/etc/grafana",
"/mnt/diskstation/nomad/grafana/lib:/var/lib/grafana" "/mnt/diskstation/nomad/grafana/lib:/var/lib/grafana"
] ]
} }
resources {
memory = 150
}
} }
} }
} }

View File

@ -38,7 +38,7 @@ job "homeassistant" {
"traefik.enable=true", "traefik.enable=true",
"traefik.http.middlewares.httpsRedirect.redirectscheme.scheme=https", "traefik.http.middlewares.httpsRedirect.redirectscheme.scheme=https",
"traefik.http.routers.${NOMAD_TASK_NAME}_insecure.middlewares=httpsRedirect", "traefik.http.routers.${NOMAD_TASK_NAME}_insecure.middlewares=httpsRedirect",
"traefik.http.routers.${NOMAD_TASK_NAME}_insecure.rule=Host(`${NOMAD_TASK_NAME}.ducamps.win`)" "traefik.http.routers.${NOMAD_TASK_NAME}_insecure.rule=Host(`${NOMAD_TASK_NAME}.ducamps.win`)",
"traefik.http.routers.${NOMAD_TASK_NAME}.rule=Host(`${NOMAD_TASK_NAME}.ducamps.win`)", "traefik.http.routers.${NOMAD_TASK_NAME}.rule=Host(`${NOMAD_TASK_NAME}.ducamps.win`)",
"traefik.http.routers.${NOMAD_TASK_NAME}.tls.domains[0].sans=${NOMAD_TASK_NAME}.ducamps.win", "traefik.http.routers.${NOMAD_TASK_NAME}.tls.domains[0].sans=${NOMAD_TASK_NAME}.ducamps.win",
"traefik.http.routers.${NOMAD_TASK_NAME}.tls.certresolver=myresolver", "traefik.http.routers.${NOMAD_TASK_NAME}.tls.certresolver=myresolver",

View File

@ -60,17 +60,17 @@ job "traefik-local" {
} }
# vault{ # vault{
#} #}
env { env {
} }
template{ template{
data=<<EOH data=<<EOH
GANDIV5_API_KEY = "{{with secret "secrets/data/gandi"}}{{.Data.data.API_KEY}}{{end}}" GANDIV5_API_KEY = "{{with secret "secrets/data/gandi"}}{{.Data.data.API_KEY}}{{end}}"
EOH EOH
destination= "secrets/gandi.env" destination= "secrets/gandi.env"
env = true env = true
} }
template{ template{
data= <<EOH data= <<EOH
[entryPoints] [entryPoints]
[entryPoints.web] [entryPoints.web]