Skip to content

Commit 3b82157

Browse files
committed
Restrict IoT Agent resources
1 parent 6ad9971 commit 3b82157

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
@@ -165,6 +165,14 @@ services:
165165
ports:
166166
- "${IOTA_NORTH_PORT}:${IOTA_NORTH_PORT}" # localhost:4041
167167
- "${IOTA_SOUTH_PORT}:${IOTA_SOUTH_PORT}" # localhost:7896
168+
deploy:
169+
resources:
170+
limits:
171+
memory: 512M
172+
cpus: '1.0'
173+
reservations:
174+
memory: 256M
175+
cpus: '0.5'
168176
environment:
169177
- IOTA_NORTH_PORT=${IOTA_NORTH_PORT}
170178
- IOTA_REGISTRY_TYPE=mongodb #Whether to hold IoT device info in memory or in a database

0 commit comments

Comments
 (0)