From 4b733d046b075d387dbaa88845a90c37beb9485e Mon Sep 17 00:00:00 2001 From: Oly Date: Wed, 12 Apr 2017 08:58:32 +0100 Subject: [PATCH] limit memory usage of database --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 89018ee..bed6a43 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,6 +19,9 @@ volumes: services: postgres: build: ./compose/postgres + # limit the ram so thing dont go out of control + # database is currently very small so we dont need much + mem_limit: 256m volumes: - postgres_data:/var/lib/postgresql/data - postgres_backup:/backups