🏡 index : github.com/captn3m0/nebula.git

author Nemo <commits@captnemo.in> 2022-12-26 12:50:31.0 +05:30:00
committer Nemo <commits@captnemo.in> 2022-12-26 12:50:31.0 +05:30:00
commit
4b6b07c09a785d97165765bf3d3f50ea206bcf14 [patch]
tree
ffc4617827c3239650e8410d72c167d1ca96b30a
parent
48b93bf25deb82085718fe67dfbc0532d080588b
download
4b6b07c09a785d97165765bf3d3f50ea206bcf14.tar.gz

[db] Increase connections for mastodon



Diff

 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"