limit memory usage of database

This commit is contained in:
Oly 2017-04-12 08:58:32 +01:00
parent 3b471b2bbb
commit 4b733d046b
1 changed files with 3 additions and 0 deletions

View File

@ -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