Updates
This commit is contained in:
@@ -13,15 +13,17 @@ resource "docker_container" "grafana" {
|
|||||||
|
|
||||||
restart = "always"
|
restart = "always"
|
||||||
|
|
||||||
|
user = "1000:1000"
|
||||||
|
|
||||||
mounts {
|
mounts {
|
||||||
target = "/var/lib/grafana"
|
target = "/var/lib/grafana"
|
||||||
source = "/share/appdata/grafana"
|
source = "/var/lib/containers/grafana"
|
||||||
type = "bind"
|
type = "bind"
|
||||||
}
|
}
|
||||||
|
|
||||||
networks_advanced {
|
networks_advanced {
|
||||||
name = docker_network.bridge.name
|
name = docker_network.container-public.name
|
||||||
ipv4_address = "192.168.2.79"
|
ipv4_address = "192.168.3.41"
|
||||||
}
|
}
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
@@ -11,25 +11,33 @@ resource "docker_container" "prometheus" {
|
|||||||
image = docker_image.prometheus.image_id
|
image = docker_image.prometheus.image_id
|
||||||
name = "prometheus"
|
name = "prometheus"
|
||||||
|
|
||||||
command = ["--config.file=/etc/prometheus/prometheus.yml","--storage.tsdb.path=/prometheus", "--web.console.libraries=/usr/share/prometheus/console_libraries","--web.console.templates=/usr/share/prometheus/consoles", "--storage.tsdb.retention.time=2y"]
|
command = [
|
||||||
|
"--config.file=/etc/prometheus/prometheus.yml",
|
||||||
|
"--storage.tsdb.path=/prometheus",
|
||||||
|
"--web.console.libraries=/usr/share/prometheus/console_libraries",
|
||||||
|
"--web.console.templates=/usr/share/prometheus/consoles",
|
||||||
|
"--storage.tsdb.retention.time=5y"
|
||||||
|
]
|
||||||
|
|
||||||
|
user = "1000:1000"
|
||||||
|
|
||||||
mounts {
|
mounts {
|
||||||
target = "/etc/prometheus"
|
target = "/etc/prometheus/prometheus.yml"
|
||||||
source = "/share/appdata/prometheus/config"
|
source = "/var/lib/containers/prometheus/config/prometheus.yml"
|
||||||
type = "bind"
|
type = "bind"
|
||||||
}
|
}
|
||||||
|
|
||||||
mounts {
|
mounts {
|
||||||
target = "/prometheus"
|
target = "/prometheus"
|
||||||
source = "/share/appdata/prometheus/data"
|
source = "/var/lib/containers/prometheus/data"
|
||||||
type = "bind"
|
type = "bind"
|
||||||
}
|
}
|
||||||
|
|
||||||
restart = "always"
|
restart = "always"
|
||||||
|
|
||||||
networks_advanced {
|
networks_advanced {
|
||||||
name = docker_network.bridge.name
|
name = docker_network.container-public.name
|
||||||
ipv4_address = "192.168.2.80"
|
ipv4_address = "192.168.3.42"
|
||||||
}
|
}
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user