upgrade mastodon and use persistent redis
Diff
mastodon/db.tf | 11 +++++++++++
mastodon/locals.tf | 2 +-
mastodon/main.tf | 8 +++++---
3 files changed, 16 insertions(+), 5 deletions(-)
@@ -9,6 +9,17 @@
memory = 256
memory_swap = 256
}
volumes = [
{
host_path = "/mnt/zwing/cache/mastodon-redis"
container_path = "/data"
}
]
}
module "mastodon-db" {
@@ -1,5 +1,5 @@
locals {
version = "4.1.2"
version = "4.1.4"
env = [
"LOCAL_DOMAIN=tatooine.club",
"REDIS_HOST=mastodon-redis",
@@ -1,7 +1,7 @@
module "mastodon-web" {
name = "mastodon-web"
source = "../modules/container"
image = "tootsuite/mastodon:v${local.version}"
image = "ghcr.io/mastodon/mastodon:v${local.version}"
keep_image = true
networks = ["mastodon", "traefik", "external", "postgres"]
@@ -44,8 +44,9 @@
module "mastodon-streaming" {
name = "mastodon-streaming"
source = "../modules/container"
image = "tootsuite/mastodon:v${local.version}"
image = "ghcr.io/mastodon/mastodon:v${local.version}"
keep_image = true
env = concat(local.env,[
"DB_POOL=8",
@@ -68,12 +69,11 @@
memory_swap = 512
}
}
module "mastodon-sidekiq" {
name = "mastodon-sidekiq"
source = "../modules/container"
image = "tootsuite/mastodon:v${local.version}"
image = "ghcr.io/mastodon/mastodon:v${local.version}"
keep_image = true
env = concat(local.env,[
"DB_POOL=50"