I got this error when deploy docker-compose with redis
220:C 23 Jul 2020 11:21:59.091 # Failed opening the RDB file root (in server root dir /etc/crontabs) for saving: Permission denied
1:M 23 Jul 2020 11:21:59.191 # Background saving error
My docker-compose file is
version: '3'
services:
main-otp-api:
image: "mainotp/api:latest"
ports:
- "5000:5000"
redis:
image: "redis:alpine"
ports:
- "6379:6379"
volumes:
- /home/mainotp-server/redis:/data
- /home/mainotp-server/conf/redis.conf:/usr/local/etc/redis/redis.conf
Anyone can help me?