[db] Increase connections for mastodon

This commit is contained in:
Nemo 2022-12-26 12:50:31 +05:30
parent 48b93bf25d
commit 4b6b07c09a
1 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,14 @@ 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"