Skip to content

Instantly share code, notes, and snippets.

@ItayPodhajcer
Created March 15, 2023 15:43
Show Gist options
  • Save ItayPodhajcer/4818fb05ba39f2a790f5d0fe022c6792 to your computer and use it in GitHub Desktop.
Save ItayPodhajcer/4818fb05ba39f2a790f5d0fe022c6792 to your computer and use it in GitHub Desktop.
terraform-azure-mastodon/main.tf#aci-mastodon-streaming
container {
name = "mastodon-streaming"
image = "docker.io/bitnami/mastodon:4"
cpu = "0.5"
memory = "1"
ports {
port = "4000"
protocol = "TCP"
}
environment_variables = {
"ALLOW_EMPTY_PASSWORD" = "yes"
"MASTODON_MODE" = "streaming"
"MASTODON_REDIS_HOST" = "localhost"
"MASTODON_DATABASE_HOST" = "localhost"
"MASTODON_DATABASE_USERNAME" = local.database_user
"MASTODON_ELASTICSEARCH_HOST" = "localhost"
"MASTODON_WEB_HOST" = "localhost"
}
secure_environment_variables = {
"MASTODON_DATABASE_PASSWORD" = random_password.database.result
"MASTODON_ELASTICSEARCH_PASSWORD" = random_password.elastic.result
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment