Skip to content

Commit 4409b85

Browse files
committed
Restrict IoT Agent resources
1 parent 5f4d633 commit 4409b85

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
@@ -85,6 +85,14 @@ services:
8585
ports:
8686
- "${IOTA_NORTH_PORT}:${IOTA_NORTH_PORT}" # localhost:4041
8787
- "${IOTA_SOUTH_PORT}:${IOTA_SOUTH_PORT}" # localhost:7896
88+
deploy:
89+
resources:
90+
limits:
91+
memory: 512M
92+
cpus: '1.0'
93+
reservations:
94+
memory: 256M
95+
cpus: '0.5'
8896
environment:
8997
- IOTA_NORTH_PORT=${IOTA_NORTH_PORT}
9098
- IOTA_REGISTRY_TYPE=mongodb #Whether to hold IoT device info in memory or in a database

0 commit comments

Comments
 (0)