Created
March 15, 2023 15:43
-
-
Save ItayPodhajcer/4818fb05ba39f2a790f5d0fe022c6792 to your computer and use it in GitHub Desktop.
terraform-azure-mastodon/main.tf#aci-mastodon-streaming
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 = "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