set 4G RAM limit

This commit is contained in:
Andy 2017-04-20 12:50:54 +02:00
parent 6f73d503d5
commit aaa6c6e68f
Signed by: arno
GPG Key ID: 368DDA2E9A471EAC

View File

@ -1,4 +1,4 @@
version: '2' version: '2.1'
volumes: volumes:
data: {} data: {}
@ -23,3 +23,15 @@ services:
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native - PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
- TZ=Europe/Amsterdam - TZ=Europe/Amsterdam
shm_size: 4G shm_size: 4G
mem_limit: 4G
# For versions above: '3.0'
# deploy:
# resources:
# limits:
# memory: 4G
# restart_policy:
# condition: none
# delay: 5s
# max_attempts: 1
# window: 120s