Skip to content

Instantly share code, notes, and snippets.

@ItayPodhajcer
Created March 15, 2023 15:39
Show Gist options
  • Save ItayPodhajcer/6d4fcffcaeb13532d162ef8bbb1b5a70 to your computer and use it in GitHub Desktop.
Save ItayPodhajcer/6d4fcffcaeb13532d162ef8bbb1b5a70 to your computer and use it in GitHub Desktop.
terraform-azure-mastodon/main.tf#aci-postgresql
container {
name = "postgresql"
image = "docker.io/bitnami/postgresql:15"
cpu = "0.5"
memory = "1"
environment_variables = {
"POSTGRESQL_DATABASE" = "bitnami_mastodon"
"POSTGRESQL_USERNAME" = local.database_user
}
secure_environment_variables = {
"POSTGRESQL_PASSWORD" = random_password.database.result
}
ports {
port = "5432"
protocol = "TCP"
}
volume {
name = "postgresql-data"
mount_path = "/bitnami/postgresql"
empty_dir = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment