Switch to host volumes. Grafana not working yet.
This commit is contained in:
@@ -8,11 +8,9 @@ job "grafana" {
|
||||
}
|
||||
}
|
||||
|
||||
volume "data-volume" {
|
||||
type = "csi"
|
||||
source = "grafana-data"
|
||||
access_mode = "single-node-writer"
|
||||
attachment_mode = "file-system"
|
||||
volume "appdata" {
|
||||
type = "host"
|
||||
source = "appdata-grafana"
|
||||
}
|
||||
|
||||
task "grafana" {
|
||||
@@ -29,7 +27,7 @@ job "grafana" {
|
||||
}
|
||||
|
||||
volume_mount {
|
||||
volume = "data-volume"
|
||||
volume = "appdata"
|
||||
destination = "/var/lib/grafana"
|
||||
}
|
||||
|
||||
|
||||
@@ -26,12 +26,10 @@ job "pi.paler.net" {
|
||||
}
|
||||
}
|
||||
|
||||
volume "sites-volume" {
|
||||
type = "csi"
|
||||
source = "sites-volume"
|
||||
access_mode = "single-node-reader-only"
|
||||
volume "sites" {
|
||||
type = "host"
|
||||
source = "sites"
|
||||
read_only = true
|
||||
attachment_mode = "file-system"
|
||||
}
|
||||
|
||||
task "http-server" {
|
||||
@@ -50,7 +48,7 @@ job "pi.paler.net" {
|
||||
}
|
||||
|
||||
volume_mount {
|
||||
volume = "sites-volume"
|
||||
volume = "sites"
|
||||
destination = "/srv/http"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,11 +15,9 @@ job "traefik" {
|
||||
}
|
||||
}
|
||||
|
||||
volume "config-volume" {
|
||||
type = "csi"
|
||||
source = "config-volume"
|
||||
access_mode = "single-node-writer"
|
||||
attachment_mode = "file-system"
|
||||
volume "config" {
|
||||
type = "host"
|
||||
source = "config"
|
||||
}
|
||||
|
||||
task "traefik" {
|
||||
@@ -54,7 +52,7 @@ job "traefik" {
|
||||
}
|
||||
|
||||
volume_mount {
|
||||
volume = "config-volume"
|
||||
volume = "config"
|
||||
destination = "/config"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user