Skip to content

Limit CPU/Memory usage for accessories? #370

Answered by basiszwo
Fire-Dragon-DoL asked this question in Q&A
Discussion options

You must be logged in to vote

Hopefully you already solved your issue ...
If anyone comes across this issue, you can add options to define the memory.

options:
  memory: 250m

Full example for a redis accessory:

redis:
    image: redis:7.0
    host: 10.0.1.10
    port: 6379:6379
    cmd: --maxmemory 200m --maxmemory-policy allkeys-lru
    volumes:
      - /var/redis/data:/data
    options:
      memory: 250m

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Sija
Comment options

@acidtib
Comment options

@Sija
Comment options

@acidtib
Comment options

@Sija
Comment options

Answer selected by Fire-Dragon-DoL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants