Skip to content

Instantly share code, notes, and snippets.

@samalba
Created November 18, 2013 22:55
Show Gist options
  • Save samalba/7536875 to your computer and use it in GitHub Desktop.
Save samalba/7536875 to your computer and use it in GitHub Desktop.
Enabling LRU cache on docker-registry
dev:
# This assumes the Redis info are in environment variables
cache:
host: _env:REDIS_HOST
port: _env:REDIS_PORT
password: _env:REDIS_PASSWORD
# Enable 1GB of LRU cache on Redis
maxmemory 1gb
maxmemory-policy allkeys-lru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment