Skip to content

Commit e476b90

Browse files
committed
Restrict IoT Agent resources
1 parent 861a87d commit e476b90

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
@@ -149,6 +149,14 @@ services:
149149
ports:
150150
- "${IOTA_NORTH_PORT}:${IOTA_NORTH_PORT}" # localhost:4041
151151
- "${IOTA_SOUTH_PORT}:${IOTA_SOUTH_PORT}" # localhost:7896
152+
deploy:
153+
resources:
154+
limits:
155+
memory: 512M
156+
cpus: '1.0'
157+
reservations:
158+
memory: 256M
159+
cpus: '0.5'
152160
environment:
153161
- IOTA_NORTH_PORT=${IOTA_NORTH_PORT}
154162
- IOTA_REGISTRY_TYPE=mongodb #Whether to hold IoT device info in memory or in a database

0 commit comments

Comments
 (0)