Commit 7270891a authored by Vasek Sraier's avatar Vasek Sraier

added resource limitations to docker compose

parent 356cc45e
version: '3'
version: '2.2'
services:
postgres:
hostname: postgres.netmetr
mem_limit: 512m
cpus: 0.25
build:
context: ./
dockerfile: docker/postgres/Dockerfile
......@@ -18,6 +20,8 @@ services:
control:
hostname: control.netmetr
mem_limit: 512m
cpus: 0.25
build:
context: ./
dockerfile: docker/control/Dockerfile
......@@ -35,6 +39,8 @@ services:
qos:
hostname: qos.netmetr
mem_limit: 512m
cpus: 0.25
build:
context: ./
dockerfile: docker/qos/Dockerfile
......@@ -42,6 +48,8 @@ services:
- control
speed:
hostname: speed.netmetr
mem_limit: 64m
cpus: 0.05
build:
context: ./
dockerfile: docker/speed/Dockerfile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment