indent
This commit is contained in:
parent
901643a4dd
commit
a124d94d2e
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user