Skip to content

Commit

Permalink
[postgres] Increase memory for mastodon
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed Dec 26, 2022
1 parent 36996a0 commit 8a0ead5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/postgres.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "docker_container" "postgres" {
name = "postgres"
image = docker_image.postgres.latest
image = docker_image.postgres.image_id

volumes {
volume_name = docker_volume.pg_data.name
Expand All @@ -23,8 +23,8 @@ resource "docker_container" "postgres" {
ip = var.ips["tun0"]
}

memory = 256
memory_swap = 512
memory = 2048
memory_swap = 2048
restart = "unless-stopped"
destroy_grace_seconds = 10
must_run = true
Expand Down

0 comments on commit 8a0ead5

Please sign in to comment.