updates
This commit is contained in:
48
core-os-podman/elasticsearch.tf
Normal file
48
core-os-podman/elasticsearch.tf
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
data "docker_registry_image" "elasticsearch" {
|
||||||
|
name = "docker.elastic.co/elasticsearch/elasticsearch-wolfi:9.1.5"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "docker_image" "elasticsearch" {
|
||||||
|
name = data.docker_registry_image.elasticsearch.name
|
||||||
|
pull_triggers = [data.docker_registry_image.elasticsearch.sha256_digest]
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "docker_container" "elasticsearch" {
|
||||||
|
image = docker_image.elasticsearch.image_id
|
||||||
|
name = "elasticsearch"
|
||||||
|
|
||||||
|
restart = "always"
|
||||||
|
|
||||||
|
memory = 5000
|
||||||
|
memory_swap = 5000
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
target = "/usr/share/elasticsearch/data"
|
||||||
|
source = "/var/lib/containers/elasticsearch/data"
|
||||||
|
type = "bind"
|
||||||
|
}
|
||||||
|
|
||||||
|
# mounts {
|
||||||
|
# target = "/usr/share/elasticsearch/config"
|
||||||
|
# source = "/var/lib/containers/elasticsearch/config"
|
||||||
|
# type = "bind"
|
||||||
|
# }
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
target = "/usr/share/elasticsearch/log"
|
||||||
|
source = "/var/lib/containers/elasticsearch/log"
|
||||||
|
type = "bind"
|
||||||
|
}
|
||||||
|
|
||||||
|
networks_advanced {
|
||||||
|
name = docker_network.container-public.name
|
||||||
|
ipv4_address = "192.168.3.46"
|
||||||
|
}
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [
|
||||||
|
ulimit,
|
||||||
|
log_opts
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
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