Created
March 15, 2023 15:40
-
-
Save ItayPodhajcer/8c392693f7879622fc57911df6869857 to your computer and use it in GitHub Desktop.
terraform-azure-mastodon/main.tf#aci-elasticsearch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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