Skip to content

Instantly share code, notes, and snippets.

@ItayPodhajcer
Created March 15, 2023 15:40
Show Gist options
  • Save ItayPodhajcer/8c392693f7879622fc57911df6869857 to your computer and use it in GitHub Desktop.
Save ItayPodhajcer/8c392693f7879622fc57911df6869857 to your computer and use it in GitHub Desktop.
terraform-azure-mastodon/main.tf#aci-elasticsearch
container {
name = "elasticsearch"
image = "docker.io/bitnami/elasticsearch:8"
cpu = "1"
memory = "2"
environment_variables = {
"ELASTICSEARCH_ENABLE_SECURITY" = "true"
"ELASTICSEARCH_SKIP_TRANSPORT_TLS" = "true"
}
secure_environment_variables = {
"ELASTICSEARCH_PASSWORD" = random_password.elastic.result
}
ports {
port = "9200"
protocol = "TCP"
}
volume {
name = "elasticsearch-data"
mount_path = "/bitnami/elasticsearch/data"
empty_dir = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment