Created
September 15, 2023 08:52
-
-
Save orange723/18a24dd4a7354a789e6e0fbe9617013d to your computer and use it in GitHub Desktop.
docker redis
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
version: "3" | |
services: | |
redis: | |
container_name: redis | |
image: redis:4.0 | |
ports: | |
- 6379:6379 | |
restart: always | |
volumes: | |
- ./data:/data | |
- ./redis.conf:/usr/local/etc/redis/redis.conf | |
- /etc/localtime:/etc/localtime | |
command: redis-server /usr/local/etc/redis/redis.conf |
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
requirepass 12345678 | |
maxmemory 536870912 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment