docker-compose.yml
version: '3'
services:
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
volumes:
- ./redis.conf:/etc/redis/redis.conf
- ./data:/data
command: ["redis-server","/etc/redis/redis.conf", "--appendonly", "yes","--requirepass","123456"]