使用redis加载redis.conf
redis.conf-文件
# 在第69行 改成 bind redis
...
bind 127.0.0.1
...
docker-compose.yml
redis:
image: redis:4
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
ports:
- "6379:6379"
volumes:
- ./app/redis/conf/redis.conf:/usr/local/etc/redis/redis.conf
- ./data/redis:/data