Skip to content

Instantly share code, notes, and snippets.

@arsalanses
Created May 13, 2024 16:56
Show Gist options
  • Select an option

  • Save arsalanses/ff90bc13c12adba0966973d11dfde93e to your computer and use it in GitHub Desktop.

Select an option

Save arsalanses/ff90bc13c12adba0966973d11dfde93e to your computer and use it in GitHub Desktop.
redis tune
services:
redis:
image: redis:7.2.4
restart: always
ports:
- 127.0.0.1:6379:6379
volumes:
# - ./data:/root/redis
- ./redis.conf:/usr/local/etc/redis/redis.conf
command:
- redis-server
- /usr/local/etc/redis/redis.conf
environment:
- REDIS_PASSWORD=my-password
- REDIS_PORT=6379
- REDIS_DATABASES=5
maxmemory 17179869184
tcp-keepalive 0
save ""
tcp-backlog 65536
maxclients 10000
# https://redis.io/docs/latest/operate/oss_and_stack/management/config/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment