Created
March 15, 2023 15:42
-
-
Save ItayPodhajcer/c795cf8c9338c10b50a56f4dd1b32ace to your computer and use it in GitHub Desktop.
terraform-azure-mastodon/main.tf#aci-mastodon-web
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" | |
image = "docker.io/bitnami/mastodon:4" | |
cpu = "0.5" | |
memory = "1" | |
ports { | |
port = "3000" | |
protocol = "TCP" | |
} | |
environment_variables = { | |
"BITNAMI_DEBUG" = "true" | |
"ALLOW_EMPTY_PASSWORD" = "yes" | |
"MASTODON_MODE" = "web" | |
"MASTODON_REDIS_HOST" = "localhost" | |
"MASTODON_DATABASE_HOST" = "localhost" | |
"MASTODON_DATABASE_USERNAME" = local.database_user | |
"MASTODON_ELASTICSEARCH_HOST" = "localhost" | |
"MASTODON_ADMIN_USERNAME" = local.mastodon_user | |
"MASTODON_ADMIN_EMAIL" = local.mastodon_email | |
} | |
secure_environment_variables = { | |
"MASTODON_DATABASE_PASSWORD" = random_password.database.result | |
"MASTODON_ELASTICSEARCH_PASSWORD" = random_password.elastic.result | |
"MASTODON_ADMIN_PASSWORD" = random_password.mastodon.result | |
} | |
volume { | |
name = "mastodon-data" | |
mount_path = "/bitnami/mastodon" | |
empty_dir = true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment