mirror of
https://github.com/PurpleComputing/scim-examples.git
synced 2026-09-17 09:10:39 +01:00
Merge pull request #181 from 1Password/dv/set-docker-resource-requests-and-limits
Set Docker resource requests and limits
This commit is contained in:
@@ -14,6 +14,7 @@ services:
|
||||
image: redis:latest
|
||||
networks:
|
||||
- op-scim
|
||||
env_file: redis.env
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
|
||||
4
docker/compose/redis.env
Normal file
4
docker/compose/redis.env
Normal file
@@ -0,0 +1,4 @@
|
||||
# Set the arguments passed to Redis:
|
||||
# - maxmemory configures Redis to use a specified amount of memory for the data set
|
||||
# - maxmemory-policy is the eviction policy used when the maximum memory is reached
|
||||
REDIS_ARGS="--maxmemory 256mb --maxmemory-policy volatile-lru"
|
||||
@@ -28,6 +28,7 @@ services:
|
||||
condition: any
|
||||
networks:
|
||||
- op-scim
|
||||
env_file: redis.env
|
||||
|
||||
networks:
|
||||
op-scim:
|
||||
|
||||
4
docker/swarm/redis.env
Normal file
4
docker/swarm/redis.env
Normal file
@@ -0,0 +1,4 @@
|
||||
# Set the arguments passed to Redis:
|
||||
# - maxmemory configures Redis to use a specified amount of memory for the data set
|
||||
# - maxmemory-policy is the eviction policy used when the maximum memory is reached
|
||||
REDIS_ARGS="--maxmemory 256mb --maxmemory-policy volatile-lru"
|
||||
Reference in New Issue
Block a user