From 4b6b07c09a785d97165765bf3d3f50ea206bcf14 Mon Sep 17 00:00:00 2001
From: Nemo <commits@captnemo.in>
Date: Mon, 26 Dec 2022 12:50:31 +0530
Subject: [PATCH] [db] Increase connections for mastodon

---
 db/postgres.tf | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/db/postgres.tf b/db/postgres.tf
index 855b334..807ccc1 100644
--- a/db/postgres.tf
+++ a/db/postgres.tf
@@ -1,7 +1,15 @@
 resource "docker_container" "postgres" {
   name  = "postgres"
   image = docker_image.postgres.image_id
 
+  command = [
+    "postgres",
+    "-c",
+    "max_connections=250",
+    "-c",
+    "shared_buffers=500MB",
+  ]
+
   volumes {
     volume_name    = docker_volume.pg_data.name
     container_path = "/var/lib/postgresql/data"
--
rgit 0.1.5