Skip to content

Instantly share code, notes, and snippets.

@ItayPodhajcer
Created March 15, 2023 15:49
Show Gist options
  • Save ItayPodhajcer/b03b9dced96740e072502a0a671a6079 to your computer and use it in GitHub Desktop.
Save ItayPodhajcer/b03b9dced96740e072502a0a671a6079 to your computer and use it in GitHub Desktop.
terraform-azure-mastodon/main.tf#aci-mastodon-sidekiq
container {
name = "mastodon-sidekiq"
image = "docker.io/bitnami/mastodon:4"
cpu = "0.5"
memory = "1"
environment_variables = {
"ALLOW_EMPTY_PASSWORD" = "yes"
"MASTODON_MODE" = "sidekiq"
"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
}
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