- redis:
- image: redis:${REDIS_VERSION}
- container_name: redis
- ports:
- – “6379:6379”
- volumes:
- – ./file/redis.conf:/etc/redis.conf
- – ./data/redis/:/data
- – ./logs/redis.log:/usr/local/redis/redis.log
- restart: always
- entrypoint: [“redis-server”, “/etc/redis.conf”]
复制代码
启动后 日志 报错:
- Can’t chdir to ‘/usr/local/redis/data’: No such file or directory
复制代码
看了很多 dockercompose 文件,都让挂在 /data 和 /usr/local/redis/data 其实是一样的,咋整? |