Skip to content

Commit 36ef322

Browse files
committed
Restrict IoT Agent resources
1 parent 7745dc4 commit 36ef322

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
@@ -70,6 +70,14 @@ services:
7070
ports:
7171
- "${IOTA_NORTH_PORT}:${IOTA_NORTH_PORT}" # localhost:4041
7272
- "${IOTA_SOUTH_PORT}:${IOTA_SOUTH_PORT}" # localhost:7896
73+
deploy:
74+
resources:
75+
limits:
76+
memory: 512M
77+
cpus: '1.0'
78+
reservations:
79+
memory: 256M
80+
cpus: '0.5'
7381
environment:
7482
- IOTA_NORTH_PORT=${IOTA_NORTH_PORT}
7583
- IOTA_REGISTRY_TYPE=mongodb #Whether to hold IoT device info in memory or in a database

0 commit comments

Comments
 (0)