Skip to content

Commit 40592a5

Browse files
committed
Restrict IoT Agent resources
1 parent c3b8008 commit 40592a5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docker-compose/common.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ services:
8787
ports:
8888
- "${IOTA_NORTH_PORT}:${IOTA_NORTH_PORT}" # localhost:4041
8989
- "${IOTA_SOUTH_PORT}:${IOTA_SOUTH_PORT}" # localhost:7896
90+
deploy:
91+
resources:
92+
limits:
93+
memory: 512M
94+
cpus: '1.0'
95+
reservations:
96+
memory: 256M
97+
cpus: '0.5'
9098
environment:
9199
- IOTA_CB_HOST=orion # name of the context broker to update context
92100
- IOTA_CB_PORT=${ORION_LD_PORT} # port the context broker listens on to update context

0 commit comments

Comments
 (0)