Created
May 13, 2024 16:56
-
-
Save arsalanses/ff90bc13c12adba0966973d11dfde93e to your computer and use it in GitHub Desktop.
redis tune
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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