Skip to content

Commit 5333d32

Browse files
committed
Restrict IoT Agent resources
1 parent c17f523 commit 5333d32

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
@@ -136,6 +136,14 @@ services:
136136
ports:
137137
- "${IOTA_NORTH_PORT}:${IOTA_NORTH_PORT}" # localhost:4041
138138
- "${IOTA_SOUTH_PORT}:${IOTA_SOUTH_PORT}" # localhost:7896
139+
deploy:
140+
resources:
141+
limits:
142+
memory: 512M
143+
cpus: '1.0'
144+
reservations:
145+
memory: 256M
146+
cpus: '0.5'
139147
environment:
140148
- IOTA_NORTH_PORT=${IOTA_NORTH_PORT}
141149
- IOTA_REGISTRY_TYPE=mongodb #Whether to hold IoT device info in memory or in a database

0 commit comments

Comments
 (0)