[db] Increase connections for mastodon
This commit is contained in:
parent
48b93bf25d
commit
4b6b07c09a
|
@ -2,6 +2,14 @@ resource "docker_container" "postgres" {
|
||||||
name = "postgres"
|
name = "postgres"
|
||||||
image = docker_image.postgres.image_id
|
image = docker_image.postgres.image_id
|
||||||
|
|
||||||
|
command = [
|
||||||
|
"postgres",
|
||||||
|
"-c",
|
||||||
|
"max_connections=250",
|
||||||
|
"-c",
|
||||||
|
"shared_buffers=500MB",
|
||||||
|
]
|
||||||
|
|
||||||
volumes {
|
volumes {
|
||||||
volume_name = docker_volume.pg_data.name
|
volume_name = docker_volume.pg_data.name
|
||||||
container_path = "/var/lib/postgresql/data"
|
container_path = "/var/lib/postgresql/data"
|
||||||
|
|
Loading…
Reference in New Issue