upgrade mastodon and use persistent redis

This commit is contained in:
Nemo 2023-07-10 17:01:50 +05:30
parent e4858d5d05
commit 9e8c5710f2
3 changed files with 16 additions and 5 deletions

View File

@ -9,6 +9,17 @@ module "mastodon-redis" {
memory = 256
memory_swap = 256
}
# In case the cache dies,
# tootctl feeds build
# regenerates the feeds, run it from
# inside a mastodon container
volumes = [
{
host_path = "/mnt/zwing/cache/mastodon-redis"
container_path = "/data"
}
]
}
module "mastodon-db" {

View File

@ -1,5 +1,5 @@
locals {
version = "4.1.2"
version = "4.1.4"
env = [
"LOCAL_DOMAIN=tatooine.club",
"REDIS_HOST=mastodon-redis",

View File

@ -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-web" {
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
# 24 threads for Streaming
env = concat(local.env,[
"DB_POOL=8",
@ -69,11 +70,10 @@ module "mastodon-streaming" {
}
}
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"